minWith

Common
JVM
JS
Native
1.7
@JvmName("minWithOrThrow") fun <T> Array<out T>.minWith(
    comparator: Comparator<in T>
): T

(source)
@JvmName("minWithOrThrow") fun ByteArray.minWith(
    comparator: Comparator<in Byte>
): Byte

(source)
@JvmName("minWithOrThrow") fun ShortArray.minWith(
    comparator: Comparator<in Short>
): Short

(source)
@JvmName("minWithOrThrow") fun IntArray.minWith(
    comparator: Comparator<in Int>
): Int

(source)
@JvmName("minWithOrThrow") fun LongArray.minWith(
    comparator: Comparator<in Long>
): Long

(source)
@JvmName("minWithOrThrow") fun FloatArray.minWith(
    comparator: Comparator<in Float>
): Float

(source)
@JvmName("minWithOrThrow") fun DoubleArray.minWith(
    comparator: Comparator<in Double>
): Double

(source)
@JvmName("minWithOrThrow") fun BooleanArray.minWith(
    comparator: Comparator<in Boolean>
): Boolean

(source)
@JvmName("minWithOrThrow") fun CharArray.minWith(
    comparator: Comparator<in Char>
): Char

(source)
@JvmName("minWithOrThrow-U") @ExperimentalUnsignedTypes fun UIntArray.minWith(
    comparator: Comparator<in UInt>
): UInt

(source)
@JvmName("minWithOrThrow-U") @ExperimentalUnsignedTypes fun ULongArray.minWith(
    comparator: Comparator<in ULong>
): ULong

(source)
@JvmName("minWithOrThrow-U") @ExperimentalUnsignedTypes fun UByteArray.minWith(
    comparator: Comparator<in UByte>
): UByte

(source)
@JvmName("minWithOrThrow-U") @ExperimentalUnsignedTypes fun UShortArray.minWith(
    comparator: Comparator<in UShort>
): UShort

(source)

Returns the first element having the smallest value according to the provided comparator.

Exceptions

NoSuchElementException - if the array is empty.

Common
JVM
JS
Native
1.7
@JvmName("minWithOrThrow") fun <T> Iterable<T>.minWith(
    comparator: Comparator<in T>
): T

(source)

Returns the first element having the smallest value according to the provided comparator.

Exceptions

NoSuchElementException - if the collection is empty.

Common
JVM
JS
Native
1.7
@JvmName("minWithOrThrow") fun <K, V> Map<out K, V>.minWith(
    comparator: Comparator<in Entry<K, V>>
): Entry<K, V>

(source)

Returns the first entry having the smallest value according to the provided comparator.

Exceptions

NoSuchElementException - if the map is empty.

JVM
1.0
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <T> Array<out T>.minWith(
    comparator: Comparator<in T>
): T?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun ByteArray.minWith(
    comparator: Comparator<in Byte>
): Byte?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun ShortArray.minWith(
    comparator: Comparator<in Short>
): Short?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun IntArray.minWith(
    comparator: Comparator<in Int>
): Int?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun LongArray.minWith(
    comparator: Comparator<in Long>
): Long?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun FloatArray.minWith(
    comparator: Comparator<in Float>
): Float?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun DoubleArray.minWith(
    comparator: Comparator<in Double>
): Double?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun BooleanArray.minWith(
    comparator: Comparator<in Boolean>
): Boolean?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun CharArray.minWith(
    comparator: Comparator<in Char>
): Char?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <T> Iterable<T>.minWith(
    comparator: Comparator<in T>
): T?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <K, V> Map<out K, V>.minWith(
    comparator: Comparator<in Entry<K, V>>
): Entry<K, V>?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun UIntArray.minWith(
    comparator: Comparator<in UInt>
): UInt?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun ULongArray.minWith(
    comparator: Comparator<in ULong>
): ULong?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun UByteArray.minWith(
    comparator: Comparator<in UByte>
): UByte?

(source)
Deprecated: Use minWithOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun UShortArray.minWith(
    comparator: Comparator<in UShort>
): UShort?

(source)
Deprecated: Use minWithOrNull instead.