Fwd: toMap method in Collection
Llewellyn Falco
isidore at setgame.com
Sat Nov 19 18:46:26 PST 2011
> Presumably the result would be a multimap, not a map, as multiple values
> could have the same key. In .NET we call this method GroupBy.
Strange, that's what we call it in SQL as well.
Still, it bothers me that because of the choice to use defender
methods, and not allow anyone other than oracle to create these
methods this thread should spend time working on the API of
collections. Trying to balance which methods will be useful to people
vs. which methods are too obscure and will add clutter to the API.
Either way, API design of collections shouldn't be part of the Lambda
Language design, and it strikes me that part of the problem with
defender methods is that it doesn't prevent the API design from
entering into the conversation.
--
Llewellyn Falco
www.approvaltests.com
www.teachingkidsprogramming.org
More information about the lambda-dev
mailing list