UNPKG

rubico

Version:

[a]synchronous functional programming

19 lines (18 loc) 446 B
export = iteratorReduce; /** * @name iteratorReduce * * @synopsis * ```coffeescript [specscript] * var T any, * iterator Iterator<T>, * reducer (any, T)=>Promise|any, * result any, * * iteratorReduce(iterator, reducer, result?) -> Promise|any * ``` * * @description * Execute a reducer for each item of an iterator, returning a single value. */ declare function iteratorReduce(iterator: any, reducer: any, result: any): any;