zl.rot Reference

Rotate a list

zl.rot

Description

zl.rot is used to rotate the contents of a list. An argument is used to specify the number of places a list item is to be rotated - positive numbers rotate the list to the right, and negative numbers rotate left. This value can also be specified as an int input in the right inlet.

Arguments

distance [int]

Optional

Specifies the rotate distance (positive=right, negative=left).

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

A list sent to the left inlet will rotate a list as specified by the int specified in the right inlet or by the distance argument.

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:
Rotated list.

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.scramble
zl.sect
zl.slice
zl.sort
zl.stack
zl.stream
zl.sub
zl.sum
zl.swap
zl.thin
zl.union
zl.unique