Type of elements within the source iterable.
Type of the intermediate accumulator. Defaults to TElement when no seed is provided.
Type returned when a resultSelector is supplied.
The source iterable.
Function that merges the running accumulator with the next element.
Optionalseed: TAccumulateOptional initial accumulator value. When omitted, the first element is used as the starting accumulator.
OptionalresultSelector: (accumulator: TAccumulate) => TResultOptional projection applied to the final accumulator before it is returned.
The final accumulator (or its projection).
Combines the elements of the sequence by applying an accumulator to each element and optionally projecting the final result.