group_by


Description:

public Future<Map<K,List<G>>> group_by<K> (owned MapFunc<K,G> classifier)

Groups the elements based on the classifier function and returns the results in a map.

There are no guarantees on the type, mutability, or thread-safety of the returned map and list.

This is equivalent to:

seq.collect( Collectors.group_by(classifier) );

This is a terminal operation.

Parameters:

classifier

a classifier function mapping elements to keys

Returns:

a future of the result map

See also:

Collectors.group_by