|
1 | 1 | import { ErrorString, InvalidOperationException } from "../../shared" |
2 | 2 |
|
3 | 3 | type AggregateFunc = { |
4 | | - /** |
5 | | - * Applies an accumulator function over a sequence. |
6 | | - * @param source An AsyncIterable<T> to aggregate over. |
7 | | - * @param func An accumulator function to be invoked on each element. |
8 | | - * @returns The final accumulator value. |
9 | | - */ |
10 | 4 | <TSource>( |
11 | 5 | source: AsyncIterable<TSource>, |
12 | 6 | func: (x: TSource, y: TSource) => TSource): Promise<TSource> |
13 | | - /** |
14 | | - * Applies an accumulator function over a sequence. |
15 | | - * The specified seed value is used as the initial accumulator value. |
16 | | - * @param source An AsyncIterable<T> to aggregate over. |
17 | | - * @param seed The initial accumulator value. |
18 | | - * @param func An accumulator function to be invoked on each element. |
19 | | - * @returns The final accumulator value. |
20 | | - */ |
21 | 7 | <TSource, TAccumulate>( |
22 | 8 | source: AsyncIterable<TSource>, |
23 | 9 | seed: TAccumulate, |
24 | 10 | func: (x: TAccumulate, y: TSource) => TAccumulate): Promise<TAccumulate> |
25 | | - /** |
26 | | - * Applies an accumulator function over a sequence. |
27 | | - * The specified seed value is used as the initial accumulator value, |
28 | | - * and the specified function is used to select the result value. |
29 | | - * @param source An AsyncIterable<T> to aggregate over. |
30 | | - * @param seed The initial accumulator value. |
31 | | - * @param func An accumulator function to be invoked on each element. |
32 | | - * @param resultSelector A function to transform the final accumulator value into the result value. |
33 | | - * @returns The transformed final accumulator value. |
34 | | - */ |
35 | 11 | <TSource, TAccumulate, TResult>( |
36 | 12 | source: AsyncIterable<TSource>, |
37 | 13 | seed: TAccumulate, |
|
0 commit comments