max By
inline fun <K, V, R : Comparable<R>> Map<out K, V>.maxBy(selector: (Map.Entry<K, V>) -> R): Map.Entry<K, V>?(source)
Deprecated
Warning since 1.4
Error since 1.5
Use maxByOrNull instead.
Replace with
this.maxByOrNull(selector)
Content copied to clipboard