Description Usage Format Fields Methods Active Bindings
An implementation of a stack
1 |
An R6Class
generator object
stack
A list which can directly accessed or accessed through the functions below. The bottom (original) item, set to NULL, should not be modified.
push(item, name = "")
Append an item
to the stack
with an optional name
and return the item
height
This will return the length of the stack
pop
This will remove the last (most recent) item from the stack
and return it
pop
This will return, but not remove, the last (most recent) item from the stack
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.