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