Description Usage Arguments Value Author(s)
TODO: implement as reference class?
Note: pop
only removes elements. To retrieve them, use peek
.
1 2 3 4 5 |
x |
the object |
an |
attribute holding the stack |
n |
numer of element to peek at and numer of elements to pop (delete), respectively |
value |
list of things to push on the stack. |
push
and pop
: the object with stack in list an
pushed/popped by the n
elements
peek
: the n
th stack element (without popping!)
Claudia Beleites
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.