Creates a reducer function that applies a specified reduction function to an iterable.
Element type
Result type
Function that combines the accumulated result with each element
Initial value for the reduction
A function that reduces an iterable to a single value
G.pipe( G.range(1, 5), G.reduce((sum, n) => sum + n, 0)) // 15 Copy
G.pipe( G.range(1, 5), G.reduce((sum, n) => sum + n, 0)) // 15
Creates a reducer function that applies a specified reduction function to an iterable.