frequencies_by/2
frequencies_by(enumerable, fun)Returns a map with keys as unique elements given by fun and values as the count of every element.
frequencies_by(enumerable, fun)Returns a map with keys as unique elements given by fun and values as the count of every element.