Reducer/Folder function.
Type to represent a folder/reducer unary function that takes an item and an accumulator something of the type of the accumulator.
const reducer: Reducer<number, number> = item => accumulator => accumulator + item; Copy
const reducer: Reducer<number, number> = item => accumulator => accumulator + item;
Unary
Type of the items to reduce.
Type of the accumulator/output.
Reducer/Folder function.
Remarks
Type to represent a folder/reducer unary function that takes an item and an accumulator something of the type of the accumulator.
Example
See
Unary