Parameters
-
reducer: Reducer<Item, Accumulator>
Returns ((initialValue) => (<Iterable>(iterable) => ReducerOutput<Iterable, Accumulator>))
Curried function with reducer
in context.
-
- (initialValue): (<Iterable>(iterable) => ReducerOutput<Iterable, Accumulator>)
-
Parameters
-
initialValue: Accumulator
Returns (<Iterable>(iterable) => ReducerOutput<Iterable, Accumulator>)
-
- <Iterable>(iterable): ReducerOutput<Iterable, Accumulator>
-
Type Parameters
-
Iterable extends IsomorphicIterable<Item>
Returns ReducerOutput<Iterable, Accumulator>
Reducer function for iterables and asynchronous iterables.
Example