Reducer
[data/array/Reducer]
Reduces array. External node(s) receive the partial result and each item and send back a new partial result.
Keywords: iterate, fold, aggregate
Input ports
array:
any[]
Receives array to be reduced. Example: ["A", "B", "C"]
initial:
any
Receives initial value for the reduced array Example: ""
part reduced:
any
Receives reduced array before the current (by tag) item. Example: "AB"
Output ports
reduced:
any
Sends the reduced array. Example: "ABC"
item:
any[][number]
Sends the current item. Example: "C"
part reduced:
any
Sends reduced array after the current (by tag) item. Example: "A"
Last updated