zl.sub Reference

Output position for each occurance of right list in left

zl.sub

Description

zl.sub accepts a list in both inlets and sends the output position (starting at 1) for each occurrence of right list in the left list out the left outlet.

Arguments

initial-list [list]

Sets the initial sub-list (right side list) to compare against the list input to the left inlet.

Attributes

fuzzy [atom] (default: 0.)

Fuzzy floating-point comparison epsilon

zlmaxsize [atom_long]

Maximum List Length

Common Box Attributes

Messages

bang

Repeat previous output

int

TEXT_HERE

float

TEXT_HERE

list

Sets the list to search for the sub-list as specified via input to the right inlet (or object argument). Causes 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

int

Out left outlet:
The position(s) (starting at 1) of the matches. Each position will be output in the order they are found.

Out right outlet:
Number of sub-list matches.

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.stack
zl.stream
zl.sum
zl.swap
zl.thin
zl.union
zl.unique