The iterable to accumulate
The accumulator function (default add
).
The addition (+) operator. If x
is an object with an add
method, it returns x.add(y)
.
Otherwise it returns the result of x + y
.
x + y
Optional
initial: anyOptional initial value (defaults to the first element in iterable)
Generated using TypeDoc
Make an iterator that returns accumulated sums, or accumulated results of other binary functions (specified via the optional
func
argument).Returns
A sequence of accumulated values