An Enumerable
An accumulator function to be invoked on each element.
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
TSource The type of the elements of source.
TAccumulate The type of the accumulator value.
The final accumulator value.
An Enumerable
The initial accumulator value.
An accumulator function to be invoked on each element.
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
TSource The type of the elements of source.
TAccumulate The type of the accumulator value.
TResult The type of the resulting value.
The final accumulator value.
An Enumerable
The initial accumulator value.
An accumulator function to be invoked on each element.
An accumulator function to be invoked on each element.
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
TSource The type of the elements of source.
TAccumulate The type of the accumulator value.
TResult The type of the resulting value.
The final accumulator value.
An Enumerable
Optional
aggregator: ((prev: TSource | TAccumulate, curr: TSource, index: number) => TSource | TAccumulate)An accumulator function to be invoked on each element.
Optional
resultSelector: ((accumulated: TAccumulate) => TResult)An accumulator function to be invoked on each element.
Generated using TypeDoc
Applies an accumulator function over a sequence.
Typeparam
TSource The type of the elements of source.
Returns
The final accumulator value.