Learn R Programming

dequer (version 2.0-2)

revver: rev

Description

rev

Usage

# S3 method for deque
rev(x)

# S3 method for stack rev(x)

# S3 method for queue rev(x)

Arguments

x

A queue, stack, or deque.

Value

Returns NULL; insertion operates via side-effects.

Details

Operates via side-effects; see examples for clarification on usage.

Examples

Run this code
# 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