At each step of an iteration, resulting data can be memorized and stored with the OMLoop accumulators . Accumulators execute storage or other operation upon the elements they are returned successively.
There are six accumulators :
: Collect gathers the result of each step of a loop into a list.
: Sum returns the sum of the collected elements.
: Min and max return the lowest and highest value among a set of collected elements.
: Counter counts the number of non-nil collected elements.
: Acum allows to define specific accumulation procedures.
To add an accumulator in the OMLoop editor .
All accumulators but acum have a single input : this input is used for collecting the successive values during a loop.
All accumulator have three outputs, allowing to access their current "memory" :