1 | import { AnyIterable } from './types';
|
2 | export declare function _reduce<T, B>(func: (acc: B, value: T) => B, start: B, iterable: AnyIterable<T>): Promise<B>;
|
3 | export declare function reduce<T, B>(func: (acc: B, value: T) => B): {
|
4 | (start: B): (iterable: AnyIterable<T>) => Promise<B>;
|
5 | (start: B, iterable: AnyIterable<T>): Promise<B>;
|
6 | };
|
7 | export declare function reduce<T, B>(func: (acc: B, value: T) => B, start: B): (iterable: AnyIterable<T>) => Promise<B>;
|
8 | export declare function reduce<T, B>(func: (acc: B, value: T) => B, start: B, iterable: AnyIterable<T>): Promise<B>;
|