minOfOrNull

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <T> Array<out T>.minOfOrNull(
    selector: (T) -> Double
): Double?
inline fun ByteArray.minOfOrNull(
    selector: (Byte) -> Double
): Double?
inline fun ShortArray.minOfOrNull(
    selector: (Short) -> Double
): Double?
inline fun IntArray.minOfOrNull(
    selector: (Int) -> Double
): Double?
inline fun LongArray.minOfOrNull(
    selector: (Long) -> Double
): Double?
inline fun FloatArray.minOfOrNull(
    selector: (Float) -> Double
): Double?
inline fun DoubleArray.minOfOrNull(
    selector: (Double) -> Double
): Double?
inline fun BooleanArray.minOfOrNull(
    selector: (Boolean) -> Double
): Double?
inline fun CharArray.minOfOrNull(
    selector: (Char) -> Double
): Double?
inline fun <T> Array<out T>.minOfOrNull(
    selector: (T) -> Float
): Float?
inline fun ByteArray.minOfOrNull(
    selector: (Byte) -> Float
): Float?
inline fun ShortArray.minOfOrNull(
    selector: (Short) -> Float
): Float?
inline fun IntArray.minOfOrNull(
    selector: (Int) -> Float
): Float?
inline fun LongArray.minOfOrNull(
    selector: (Long) -> Float
): Float?
inline fun FloatArray.minOfOrNull(
    selector: (Float) -> Float
): Float?
inline fun DoubleArray.minOfOrNull(
    selector: (Double) -> Float
): Float?
inline fun BooleanArray.minOfOrNull(
    selector: (Boolean) -> Float
): Float?
inline fun CharArray.minOfOrNull(
    selector: (Char) -> Float
): Float?
@ExperimentalUnsignedTypes inline fun UIntArray.minOfOrNull(
    selector: (UInt) -> Double
): Double?
@ExperimentalUnsignedTypes inline fun ULongArray.minOfOrNull(
    selector: (ULong) -> Double
): Double?
@ExperimentalUnsignedTypes inline fun UByteArray.minOfOrNull(
    selector: (UByte) -> Double
): Double?
@ExperimentalUnsignedTypes inline fun UShortArray.minOfOrNull(
    selector: (UShort) -> Double
): Double?
@ExperimentalUnsignedTypes inline fun UIntArray.minOfOrNull(
    selector: (UInt) -> Float
): Float?
@ExperimentalUnsignedTypes inline fun ULongArray.minOfOrNull(
    selector: (ULong) -> Float
): Float?
@ExperimentalUnsignedTypes inline fun UByteArray.minOfOrNull(
    selector: (UByte) -> Float
): Float?
@ExperimentalUnsignedTypes inline fun UShortArray.minOfOrNull(
    selector: (UShort) -> Float
): Float?

Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.

If any of values produced by selector function is NaN, the returned result is NaN.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <T, R : Comparable<R>> Array<out T>.minOfOrNull(
    selector: (T) -> R
): R?
inline fun <R : Comparable<R>> ByteArray.minOfOrNull(
    selector: (Byte) -> R
): R?
inline fun <R : Comparable<R>> ShortArray.minOfOrNull(
    selector: (Short) -> R
): R?
inline fun <R : Comparable<R>> IntArray.minOfOrNull(
    selector: (Int) -> R
): R?
inline fun <R : Comparable<R>> LongArray.minOfOrNull(
    selector: (Long) -> R
): R?
inline fun <R : Comparable<R>> FloatArray.minOfOrNull(
    selector: (Float) -> R
): R?
inline fun <R : Comparable<R>> DoubleArray.minOfOrNull(
    selector: (Double) -> R
): R?
inline fun <R : Comparable<R>> BooleanArray.minOfOrNull(
    selector: (Boolean) -> R
): R?
inline fun <R : Comparable<R>> CharArray.minOfOrNull(
    selector: (Char) -> R
): R?
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UIntArray.minOfOrNull(
    selector: (UInt) -> R
): R?
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> ULongArray.minOfOrNull(
    selector: (ULong) -> R
): R?
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UByteArray.minOfOrNull(
    selector: (UByte) -> R
): R?
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UShortArray.minOfOrNull(
    selector: (UShort) -> R
): R?

Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <T> Iterable<T>.minOfOrNull(
    selector: (T) -> Double
): Double?
inline fun <T> Iterable<T>.minOfOrNull(
    selector: (T) -> Float
): Float?

Returns the smallest value among all values produced by selector function applied to each element in the collection or null if there are no elements.

If any of values produced by selector function is NaN, the returned result is NaN.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <T, R : Comparable<R>> Iterable<T>.minOfOrNull(
    selector: (T) -> R
): R?

Returns the smallest value among all values produced by selector function applied to each element in the collection or null if there are no elements.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <K, V> Map<out K, V>.minOfOrNull(
    selector: (Entry<K, V>) -> Double
): Double?
inline fun <K, V> Map<out K, V>.minOfOrNull(
    selector: (Entry<K, V>) -> Float
): Float?

Returns the smallest value among all values produced by selector function applied to each entry in the map or null if there are no entries.

If any of values produced by selector function is NaN, the returned result is NaN.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
inline fun <K, V, R : Comparable<R>> Map<out K, V>.minOfOrNull(
    selector: (Entry<K, V>) -> R
): R?

Returns the smallest value among all values produced by selector function applied to each entry in the map or null if there are no entries.

© 2010–2021 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-of-or-null.html