Skip to content

Commit

Permalink
KEEP #23: Add a note about using java.util.stream.Collector with grou…
Browse files Browse the repository at this point in the history
…pingBy.
  • Loading branch information
ilya-g committed Jul 11, 2016
1 parent 425a452 commit d62f64b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proposals/stdlib/group-and-fold.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,5 @@ The operation returns `Map<K, R>`, where `K` is the type of the key and `R` is t
* If we do not provide some forms, evaluate whether they could be introduced later.
* Converting collection operations to folds can be error-prone, maybe we should provide
some standard reducer functions, such as Count, Sum etc.
* In Java 8 it is possible to engage standard Collectors API by providing the operation
`Grouping<T, K>.collectEach(Collector<T, A, R>)`

0 comments on commit d62f64b

Please sign in to comment.