Kotlin HashMap minByOrNull()
Syntax & Examples
Syntax of HashMap.minByOrNull()
The syntax of HashMap.minByOrNull() extension function is:
fun <K, V, R : Comparable<R>> Map<out K, V>.minByOrNull( selector: (Entry<K, V>) -> R ): Entry<K, V>?
This minByOrNull() extension function of HashMap returns the first entry yielding the smallest value of the given function or null if there are no entries.