Skip to main content

Iterator: Collect

Foundational exit node created automatically inside every iterator scope. Wires the per-iteration sub-graph output back into the parent iterator. Cannot be added or deleted manually — it appears as a side effect of creating an iterator and disappears when the iterator is removed.

The exposed input connector(s) depend on the parent iterator. Note that the connector key is collect for most iterators — the name shown in the editor is only a display label:

Parent iteratorConnector keyDisplay labelTypeRole
MapcollectAny elementanyCollected element for the output list.
FiltercollectKeep element (boolean)BoolWhether to keep the current element.
Find / Some / EverycollectMatch (boolean)BoolPredicate result.
ReducecollectNew accumulatoranyNew accumulator for the next iteration.
GroupBykey + value (optional)Key (string) / ValueString / anyBucket label and value.
SortkeySort keyNumber or StringComparable sort key.

Parameters

This node has no parameters.

Input

One or more connectors as listed above, depending on the parent iterator type.

Output

This node has no output connectors — its inputs feed back into the parent iterator.