Kotlin HashMap minWith()
Syntax & Examples
Syntax of HashMap.minWith()
The syntax of HashMap.minWith() extension function is:
fun <K, V> Map<out K, V>.minWith( comparator: Comparator<in Entry<K, V>> ): Entry<K, V>
This minWith() extension function of HashMap returns the first entry having the smallest value according to the provided comparator.