CountByExtension<T> extension

on

Methods

countBy<TKey>(TKey keySelector(T element)) Iterable<MapEntry<TKey, int>>
Applies keySelector to every element in this iterable and returns an iterable containing each resulting key and the number of times that key appears in this iterable.