Yet another run at reduce (collect) (original) (raw)

Brian Goetz brian.goetz at oracle.com
Wed Jan 9 06:35:31 PST 2013


And further, I think this is a net positive win in terms of understandability. For example:

reduce(intoList()) => collect(intoList()) The name provides a pleasant and appropriate clue that it is something often applicable to Collections. Try it out on other examples.

collect(groupBy(...)) collect(partition(...)) collect(mappedTo / toMap))



More information about the lambda-libs-spec-observers mailing list