IterableCountBy<T> extension

Count occurrences of each element.

on

Methods

countBy() Map<T, int>

Available on Iterable<T>, provided by the IterableCountBy extension

Map of element to occurrence count.