1 | import { ReduceOptions } from './reduceoptions';
|
2 | /**
|
3 | * Applies an accumulator function over an iterable sequence from the right, returning the result of the aggregation as a
|
4 | * single element in the result sequence. The seed value, if specified, is used as the initial accumulator value.
|
5 | * For aggregation behavior with incremental intermediate results, scan.
|
6 | *
|
7 | * @export
|
8 | * @template T The type of the elements in the source sequence.
|
9 | * @template R The type of the result of the aggregation.
|
10 | * @param {Iterable<T>} source An iterable sequence to aggregate over.
|
11 | * @param {ReduceOptions<T, R>} options The options which contains a callback and optional seed.
|
12 | * @returns {R} The final accumulator value calculated from the right.
|
13 | */
|
14 | export declare function reduceRight<T, R = T>(source: Iterable<T>, options: ReduceOptions<T, R>): R;
|
15 | export declare function reduceRight<T, R = T>(source: Iterable<T>, accumulator: (accumulator: R, current: T, index: number) => R, seed?: R): R;
|