powered by
rev
# S3 method for deque rev(x)# S3 method for stack rev(x)# S3 method for queue rev(x)
# S3 method for stack rev(x)
# S3 method for queue rev(x)
A queue, stack, or deque.
Returns NULL; insertion operates via side-effects.
NULL
Operates via side-effects; see examples for clarification on usage.
# NOT RUN { library(dequer) s <- stack() for (i in 1:5) push(d, i) str(s) rev(s) str(s) # } # NOT RUN { # }
Run the code above in your browser using DataLab