-
Notifications
You must be signed in to change notification settings - Fork 675
Closed
Labels
Description
The existing method RichIterable.aggregateBy(Function, Function0, Function2) is conceptually a groupBy() followed by injectInto() on each group of values. This method would be a groupBy followed by reduce() on each group of values. Multiple variants are possible, but the first signature ought to be:
<K, T> MapIterable<K, T> reduceBy(
Function<? super T, ? extends K> groupBy,
Function2<? super T, ? super T, ? extends T> reduceFunction);Reactions are currently unavailable