Into (original) (raw)

Doug Lea dl at cs.oswego.edu
Wed Dec 26 08:21:03 PST 2012


On 12/26/12 11:12, Raab, Donald wrote:

Map<K,<Collection> toMap(Function<? super T,K> keyFn); This is essentially groupBy.

Yeah, and worse, it is the sucky version of groupBy that doesn't force you to do the right thing and merge while building! (The overloaded two-arg form does that.) I'm not even sure it is a service to provide it, although it is essential here and there and a little too painful for users to do themselves without the method.

In any case, I think having a highly uniform naming scheme outweighs most of these concerns.

-Doug



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