eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Implement MapIterable.groupBy(KeyFunction, ValueFunction, TargetMultimap)

Open nikhilnanivadekar opened this issue 8 years ago • 2 comments

This is related to #409

nikhilnanivadekar avatar Dec 01 '17 23:12 nikhilnanivadekar

Do you have an example when you might use this? On Fri, Dec 1, 2017 at 6:12 PM Nikhil Nanivadekar [email protected] wrote:

This is related to #409 https://github.com/eclipse/eclipse-collections/issues/409

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eclipse/eclipse-collections/issues/417, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO6IvPClRUgbnr3YFy7hpxw46MyS0PBks5s8Ie_gaJpZM4QzCK2 .

motlin avatar Dec 01 '17 23:12 motlin

For example:

MapIterable<Person, Order> personToOrderMap = Maps.mutable.empty();
personToOrderMap.collectKeys(Person::getLastName, Multimaps.list.mutable.empty())

But I am not too tied up on having this, so if @donraab and you think it is not useful, I can close the issue.

nikhilnanivadekar avatar Dec 07 '17 17:12 nikhilnanivadekar