dominantValueBy

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

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

Sources

Katlib source
Link copied to clipboard