powered by
The StackL class returns a stack with list backend. It is recommended for short stack
StackL
An object of class R6ClassGenerator of length 24.
R6ClassGenerator
StackL$new() StackL$push(item) StackL$pop() StackL$size() StackL$as_list()
item: any R object
item
# NOT RUN { s <- StackL$new() s$push("first") s$push("second") s$pop() # second s$pop() # first # }
Run the code above in your browser using DataLab