Kotlin HashMap minWithOrNull()
Syntax & Examples
Syntax of HashMap.minWithOrNull()
The syntax of HashMap.minWithOrNull() extension function is:
fun <K, V> Map<out K, V>.minWithOrNull( comparator: Comparator<in Entry<K, V>> ): Entry<K, V>?
This minWithOrNull() extension function of HashMap returns the first entry having the smallest value according to the provided comparator or null if there are no entries.