groupBy<K> method
Splits an iterable into sub-lists stored in a map, based on result of
calling getKey
function on each element of this
, and grouping the
results according to values returned.
Implementation
Map<K, List<V>> groupBy<K>(Func1<V, K> getKey) => _groupBy(getKey, this);