Skip to content

aggregate

Litichevskiy Dmitriy edited this page Jan 26, 2019 · 1 revision

aggregateFunction : *

Kind: global typedef
Returns: * - New accumulator value.

Param Type Description
accumulator * Current accumulator value.
element * The element of an iterable.
elementNumber number Number of the iterable element.

manipula.aggregate(accumulatorInitialValue, aggregateFunction)

Method applies an accumulator function over an iterable.

Kind: instance method of Manipula

Param Type Description
accumulatorInitialValue * The initial accumulator value.
aggregateFunction aggregateFunction An accumulator function to be invoked on each element.
Clone this wiki locally