Description Usage Arguments Details Value See Also Examples
The pop function retrieves the first reachable
object from .stack.
1 | pop(.stack)
|
.stack |
A stack. |
The pop function is not pure. Side effect is that
.stack is modified in the calling environment.
The object retrieved.
If .stack is empty, an error is thrown.
push.
1 2 3 4 | (s <- lifo(max_length = 3)) # empty LIFO
(push(s, 0.3)) #
(push(s, data.frame(x=1:2, y=2:3)))
obj <- pop(s) # get the last element inserted
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.