fifo: Stacks - creation and class

Description Usage Arguments Value See Also

View source: R/new.R

Description

The fifo, lifo, and nino functions create 'First In First Out', 'Last In First Out', and 'Not In or Never Out' stacks, respectively.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
is.stack(x)

is.fifo(x)

is.lifo(x)

is.nino(x)

## S3 method for class 'stack'
as.list(x, ...)

fifo(max_length = Inf, max_size = Inf)

lifo(max_length = Inf, max_size = Inf)

nino(max_length = Inf, max_size = Inf)

Arguments

x

An object to be tested or coerced.

...

Additional arguments.

max_length

numeric. The maximum (infinite by default) number of objects the stack can contain.

max_size

numeric. The maximum (infinite by default) size of the stack, in octets.

Value

is.xxx functions return a logical.

fifo, lifo, and nino return an empty FIFO, LIFO, or NINO stack.

See Also

push, pop.


paulponcet/flifo documentation built on May 24, 2019, 10:32 p.m.