zl.sect Reference

Find common items between two lists

zl.sect

Description

zl.sect accepts a list in both inlets and sends a list out the left outlet that contains the elements that are common to both lists.

Arguments

initial-list [list]

Sets the initial list to be compared.

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

In left inlet:
Compares list with rightmost input and outputs what is common between the two lists. If the right inlet has not received a list (or the initial list has not been set by an argument), a bang will be output the right output.

In right inlet:
Sets the list to be compared with the left list input. 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:
List of common items between the left and right list inputs.

Out right outlet:
When nothing is common between inputs (or there is no right inlet input or initial list argument), a bang is 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.slice
zl.sort
zl.stack
zl.stream
zl.sub
zl.sum
zl.swap
zl.thin
zl.union
zl.unique