The fifo
, lifo
, and nino
functions
create 'First In First Out', 'Last In First Out', and
'Not In or Never Out' stacks, respectively.
is.stack(x)is.fifo(x)
is.lifo(x)
is.nino(x)
# S3 method for 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)
An object to be tested or coerced.
Additional arguments.
numeric. The maximum (infinite by default) number of objects the stack can contain.
numeric. The maximum (infinite by default) size of the stack, in octets.
is.xxx
functions return a logical.
fifo
, lifo
, and nino
return
an empty FIFO, LIFO, or NINO stack.