reduce<A, B>(f, seed): (source) => B
Reduces an iterable to a single value.
Type Parameters
A: A
Element type
B: B
Accumulator type
Parameters
f: (acc, a) => B
The reducer function
seed: B
The initial accumulator
Returns
A function that reduces an iterable
Since
2.4.0