fluid.accumulate(list, fn, arg)

Scans through a list of objects, "accumulating" a value over them (may be a straightforward "sum" or some other chained computation). The results will be added to the initial value passed in by "arg" and returned.

To a Google developer, this would be "reduce", from the "map/reduce" pairing.


Return Value

Object: the modified "arg" object