createStack: Stack Operations

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/stack.R

Description

Methods to create and interact with stacks.

Usage

1
2
3
4
5
6
7
8
9
createStack(...)
push(stack, x)
pop(stack)
## S3 method for class 'stack'
print(x, ...)
## S3 method for class 'stack'
as.list(x, ...)
## S3 method for class 'stack'
length(x)

Arguments

...

one or more objects to be put into a stack.

stack

a stack object as created by createStack.

x

an object to push on a stack.

Details

The objects in ... will be ordered in the stack in the order they appear, with the first at the top.

Value

For createStack an object of class stack. No value for push, the first object in the stack for pop.

Author(s)

Antoine Filipovic Pierucci

See Also

list.

Examples

1
2
3
4
5
6
7

rmngb documentation built on May 29, 2017, 9:22 p.m.

Related to createStack in rmngb...