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