A newer version of Max is available. Click here to access the latest version of the Max documentation

iter Reference

Break a list into individual messages or lists

iter

Examples

Arguments

size [number]

Optional

Sets the maximum number of elements for each output chunk (default = 1). If there are not enough elements in an incoming list to fill the last output list, it is still output.

Inlets

input [list]

List to be iterated

size [number]

Sets the maximum number of elements for each output chunk (default = 1). If there are not enough elements in an incoming list to fill the last output list, it is still output.

Outlets

out [list]

Outputs a sequence of numbers or lists of length size until all elements of the incoming list have been passed.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

input [list]

List to be iterated

reset [bang]

reset

size [number]

Sets the maximum number of elements for each output chunk (default = 1). If there are not enough elements in an incoming list to fill the last output list, it is still output.

See Also

Name Description
iter Break a list into individual messages
join Combine items into a list
pack combine numbers into a list
pak combine numbers into a list
unjoin Break a list into messages
unpack separate list values into numbers