Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -1,6 +1,9 @@
|
|||
stack = .queue~of(123, 234) -- creates a stack with a couple of items
|
||||
stack~push("Abc") -- pushing
|
||||
value = stack~pull -- popping
|
||||
say 'popped:' value
|
||||
value = stack~peek -- peeking
|
||||
say 'peeked:' value
|
||||
-- the is empty test
|
||||
if stack~isEmpty then say "The stack is empty"
|
||||
Else say stack~items 'items are on the stack'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue