map/group_by_key library

Functions

groupByFirstLetter(List<String> words) Map<String, List<String>>
groupByKey<T, K>(List<T> items, K keySelector(T)) Map<K, List<T>>
Groups the elements of items using the provided keySelector function which extracts a key of type K from each element of type T.