tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Queue-Definition/Tcl/queue-definition-2.tcl
Normal file
10
Task/Queue-Definition/Tcl/queue-definition-2.tcl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package require struct::queue
|
||||
struct::queue Q
|
||||
Q size ;# ==> 0
|
||||
Q put a b c d e
|
||||
Q size ;# ==> 5
|
||||
Q peek ;# ==> a
|
||||
Q get ;# ==> a
|
||||
Q peek ;# ==> b
|
||||
Q pop 4 ;# ==> b c d e
|
||||
Q size ;# ==> 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue