View source: R/01_constructors.r
stack | R Documentation |
A stack is a "last in, first out" (LIFO) abstract data type. New items are
added to the front of the stack via push()
. Items are removed from
the stack at the front via pop()
.
The implementation is a head/tail doubly linked list.
stack()
A constructor for a stack.
## Not run: library(dequer) s <- stack() s ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.