zl.stack Reference

Output elements of a list in reverse order

zl.stack

Description

zl.stack functions as a last-in-first-out (LIFO) stack; a bang outputs the most recently received message and removes it from the currently held list.

Arguments

None.

Attributes

fuzzy [atom] (default: 0.)

Fuzzy floating-point comparison epsilon

zlmaxsize [atom_long]

Maximum List Length

Common Box Attributes

Messages

bang

Outputs the most recently received item and then removes it from the currently held list.

int

TEXT_HERE

float

TEXT_HERE

list

Adds any recieved items to the currently held list (does not cause output).

anything

TEXT_HERE

mode

The word 'mode' followed by one of the following words will set the mode of the object:
change, compare, delace, ecils, group, indexmap, iter, join, lace, len, lookup, median, mth, nth, queue, reg, rev, rot, scramble, sect, slice, sort, stack, stream, sub, sum, swap, thin, union, or unique.

See the reference for the corresponding mode for more information.

zlclear

Clears the currently held list.

Output

anything

Out left outlet:
Most recent item from currently held list.

int

Out right outlet:
Number of items remaining in list. A -1 will be output when a bang is receieved after the last item was output.

See Also

Name Description
zl
zl.change
zl.compare
zl.delace
zl.ecils
zl.filter
zl.group
zl.indexmap
zl.iter
zl.join
zl.lace
zl.len
zl.lookup
zl.median
zl.mth
zl.nth
zl.queue
zl.reg
zl.rev
zl.rot
zl.scramble
zl.sect
zl.slice
zl.sort
zl.stream
zl.sub
zl.sum
zl.swap
zl.thin
zl.union
zl.unique