Stack: Difference between revisions

357 bytes added ,  12 years ago
No edit summary
Line 1,776:
lst = []
end</lang>
 
=={{header|ooRexx}}==
The ooRexx queue class functions as a stack as well (it is a dequeue really).
<lang ooRexx>
stack = .queue~of(123, 234) -- creates a stack with a couple of items
stack~push("Abc") -- pushing
value = stack~pull -- popping
value = stack~peek -- peeking
-- the is empty test
if stack~isEmpty then say "The stack is empty"
</lang>
 
=={{header|Oz}}==