- groupByMap<T, TKey>(
input: Iterable<T>,
keySelector: (arg: T) => TKey,
): Map<TKey, T[]> Parameters
- input: Iterable<T>
- keySelector: (arg: T) => TKey
Returns Map<TKey, T[]>
- groupByMap<T, TKey, TValue>(
input: Iterable<T>,
keySelector: (arg: T) => TKey,
elementSelector: (arg: T) => TValue,
): Map<TKey, TValue[]> Parameters
- input: Iterable<T>
- keySelector: (arg: T) => TKey
- elementSelector: (arg: T) => TValue
Groups the input and returns a map.
See from(sequence).groupBy for examples.