minWithOrNull

Common
JVM
JS
Native
1.4
fun <T> Array<out T>.minWithOrNull(
    comparator: Comparator<in T>
): T?

(source)
fun ByteArray.minWithOrNull(
    comparator: Comparator<in Byte>
): Byte?

(source)
fun ShortArray.minWithOrNull(
    comparator: Comparator<in Short>
): Short?

(source)
fun IntArray.minWithOrNull(
    comparator: Comparator<in Int>
): Int?

(source)
fun LongArray.minWithOrNull(
    comparator: Comparator<in Long>
): Long?

(source)
fun FloatArray.minWithOrNull(
    comparator: Comparator<in Float>
): Float?

(source)
fun DoubleArray.minWithOrNull(
    comparator: Comparator<in Double>
): Double?

(source)
fun BooleanArray.minWithOrNull(
    comparator: Comparator<in Boolean>
): Boolean?

(source)
fun CharArray.minWithOrNull(
    comparator: Comparator<in Char>
): Char?

(source)
fun <T> Iterable<T>.minWithOrNull(
    comparator: Comparator<in T>
): T?

(source)
@ExperimentalUnsignedTypes fun UIntArray.minWithOrNull(
    comparator: Comparator<in UInt>
): UInt?

(source)
@ExperimentalUnsignedTypes fun ULongArray.minWithOrNull(
    comparator: Comparator<in ULong>
): ULong?

(source)
@ExperimentalUnsignedTypes fun UByteArray.minWithOrNull(
    comparator: Comparator<in UByte>
): UByte?

(source)
@ExperimentalUnsignedTypes fun UShortArray.minWithOrNull(
    comparator: Comparator<in UShort>
): UShort?

(source)

Returns the first element having the smallest value according to the provided comparator or null if there are no elements.

Common
JVM
JS
Native
1.4
fun <K, V> Map<out K, V>.minWithOrNull(
    comparator: Comparator<in Entry<K, V>>
): Entry<K, V>?

(source)

Returns the first entry having the smallest value according to the provided comparator or null if there are no entries.