minWith
Returns the first element having the smallest value according to the provided comparator.
Since Kotlin
1.7Throws
if the array is empty.
Returns the first element having the smallest value according to the provided comparator.
Since Kotlin
1.7Throws
if the collection is empty.
inline fun <K, V> Map<out K, V>.minWith(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.
Since Kotlin
1.7Throws
if the map is empty.
fun <K, V> Map<out K, V>.minWith(comparator: Comparator<in Map.Entry<K, V>>): Map.Entry<K, V>?(source)
Deprecated
Warning since 1.4
Error since 1.5
Hidden since 1.6
Use minWithOrNull instead.
Replace with
this.minWithOrNull(comparator)
Content copied to clipboard
Since Kotlin
1.0Deprecated
Warning since 1.4
Error since 1.5
Hidden since 1.6
Use minWithOrNull instead.
Replace with
this.minWithOrNull(comparator)
Content copied to clipboard