# NOT RUN {
library(dequer)
### A simple queue example
q <- queue()
for (i in 1:3) pushback(q, i)
str(q)
### A simple stack example
s <- stack()
for (i in 1:3) push(s, i)
str(s)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab