- reduce<T, TOut>(aggFunc: ((prev: TOut, curr: T, idx: number) => TOut), seed: TOut): ((source: Iterable<T>) => TOut)
-
Parameters
-
aggFunc: ((prev: TOut, curr: T, idx: number) => TOut)
-
- (prev: TOut, curr: T, idx: number): TOut
-
Parameters
-
prev: TOut
-
curr: T
-
idx: number
Returns TOut
-
seed: TOut
Returns ((source: Iterable<T>) => TOut)
-
- (source: Iterable<T>): TOut
-
Returns TOut
- reduce<T>(aggFunc: ((prev: T, curr: T, idx: number) => T)): ((source: Iterable<T>) => T)
-
Parameters
-
aggFunc: ((prev: T, curr: T, idx: number) => T)
-
- (prev: T, curr: T, idx: number): T
-
Parameters
-
prev: T
-
curr: T
-
idx: number
Returns T
Returns ((source: Iterable<T>) => T)
-
- (source: Iterable<T>): T
-
Returns T