Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Stack/Quackery/stack.quackery
Normal file
15
Task/Stack/Quackery/stack.quackery
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[ size 1 = ] is isempty ( s --> b )
|
||||
|
||||
[ stack ] is mystack ( --> s )
|
||||
|
||||
mystack isempty if [ say "mystack is empty" cr cr ]
|
||||
23 mystack put
|
||||
mystack share echo say " is on the top of mystack" cr cr
|
||||
|
||||
mystack mystack put ( you can put anything on an ancillary stack, even itself! )
|
||||
|
||||
mystack share echo say " is on the top of mystack" cr cr
|
||||
mystack take echo say " has been removed from mystack" cr cr
|
||||
mystack take echo say " has been removed from mystack" cr cr
|
||||
mystack isempty if [ say "mystack is empty" cr cr ]
|
||||
say "you are in a maze of twisty little passages, all alike"
|
||||
Loading…
Add table
Add a link
Reference in a new issue