reduce-by
v0.9.6arrow_drop_downFunction
,*
,Function
,Array
Object
Groups the elements of the list according to the result of calling
the String-returning function keyFn
on each element and reduces the elements
of each group to a single value via the reducer function valueFn
.
This function is basically a more general groupBy
function.
Acts as a transducer if a transformer is given in list position.
Function
The function that reduces the elements of each group to a single value. Receives two values, accumulator for a particular group and the current element.
*
The (initial) accumulator value for each group.
Function
The function that maps the list’s element into a key.
Array
The array to group.
Object
An object with the output of `keyFn` for keys, mapped to the output of `valueFn` for elements which produced that key when passed to `keyFn`.