fun <T> Array<out T>.minWithOrNull( comparator: Comparator<in T> ): T?
fun ByteArray.minWithOrNull( comparator: Comparator<in Byte> ): Byte?
fun ShortArray.minWithOrNull( comparator: Comparator<in Short> ): Short?
fun IntArray.minWithOrNull( comparator: Comparator<in Int> ): Int?
fun LongArray.minWithOrNull( comparator: Comparator<in Long> ): Long?
fun FloatArray.minWithOrNull( comparator: Comparator<in Float> ): Float?
fun DoubleArray.minWithOrNull( comparator: Comparator<in Double> ): Double?
fun BooleanArray.minWithOrNull( comparator: Comparator<in Boolean> ): Boolean?
fun CharArray.minWithOrNull( comparator: Comparator<in Char> ): Char?
fun <T> Iterable<T>.minWithOrNull( comparator: Comparator<in T> ): T?
@ExperimentalUnsignedTypes fun UIntArray.minWithOrNull( comparator: Comparator<in UInt> ): UInt?
@ExperimentalUnsignedTypes fun ULongArray.minWithOrNull( comparator: Comparator<in ULong> ): ULong?
@ExperimentalUnsignedTypes fun UByteArray.minWithOrNull( comparator: Comparator<in UByte> ): UByte?
@ExperimentalUnsignedTypes fun UShortArray.minWithOrNull( comparator: Comparator<in UShort> ): UShort?
Returns the first element having the smallest value according to the provided comparator or null
if there are no elements.
fun <K, V> Map<out K, V>.minWithOrNull( comparator: Comparator<in Entry<K, V>> ): Entry<K, V>?
Returns the first entry having the smallest value according to the provided comparator or null
if there are no entries.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/min-with-or-null.html