dominantValueBy

inline fun <T, R> Iterable<T>.dominantValueBy(crossinline selector: (T) -> R): R?(source)

Returns the most frequently occurring value of the given function or null if there are no elements.