minWithOrNull
Returns the first element having the smallest value according to the provided comparator or null
if there are no elements.
Since Kotlin
1.4inline fun <K, V> Map<out K, V>.minWithOrNull(comparator: Comparator<in Map.Entry<K, V>>): Map.Entry<K, V>?(source)
Returns the first entry having the smallest value according to the provided comparator or null
if there are no entries.