Yet another run at reduce (collect) (original) (raw)
Brian Goetz brian.goetz at oracle.com
Wed Jan 9 06:35:31 PST 2013
- Previous message: Yet another run at reduce (collect)
- Next message: Yet another run at reduce (collect)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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))
- Previous message: Yet another run at reduce (collect)
- Next message: Yet another run at reduce (collect)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list