Kotlin HashMap minOfWithOrNull()
Syntax & Examples
Syntax of HashMap.minOfWithOrNull()
The syntax of HashMap.minOfWithOrNull() extension function is:
fun <K, V, R> Map<out K, V>.minOfWithOrNull( comparator: Comparator<in R>, selector: (Entry<K, V>) -> R ): R?
This minOfWithOrNull() extension function of HashMap returns the smallest value according to the provided comparator among all values produced by selector function applied to each entry in the map or null if there are no entries.