Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

collections (version 0.1.2)

StackL: Stack (list based)

Description

The StackL class returns a stack with list backend. Pure R implementation, mainly for benchmark.

Usage

StackL

Format

An object of class R6ClassGenerator of length 24.

Usage

StackL$new()
StackL$push(item)
StackL$pop()
StackL$size()
StackL$as_list()

Argument

  • item: any R object

See Also

StackL

Examples

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