group_by
Description:
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 |