powered by
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().
push()
pop()
The implementation is a head/tail doubly linked list.
stack()
A constructor for a stack.
# NOT RUN { library(dequer) s <- stack() s # } # NOT RUN { # }
Run the code above in your browser using DataLab