listfunnel
Description
Outputs the elements of an incoming list in the format:
[index] [element]
for each element of the list.
Examples

Use listfunnel not only for convenience, but also for variable-length lists.
Arguments
offset [int]
Optional
An integer argument is used to specify an offset for the first index value. If no argument is present, the list elements are numbered beginning with the default index of 0.
Attributes
Common Box Attributes
Messages
int
Arguments
input
[int]
The low index value and the received number are sent out as a two-element list.
float
Arguments
input
[float]
The low index value and the received number are sent out as a two-element list.
list
Arguments
input
[list]
Each element of the list is indexed and this index is prepended to the list element and sent out the outlet as a two-element list. The input list may contain ints, floats, and symbols (provided that the first element of the list is not a symbol).
anything
Arguments
input
[list]
Performs the same as
. offset
Arguments
offset
[int]
The word
followed by an integer argument is used to specify an offset for the first index value. Output
list
When a list is received in the inlet, listfunnel outputs a two-element list for each element of the input list, consisting of the elements index followed the list element. listfunnel is designed for conveniently replacing a combination of unpack and funnel objects.
See Also
Name | Description |
---|---|
funnel | |
spray |