minOrNull

Common
JVM
JS
Native
1.4
fun Array<out Double>.minOrNull(): Double?
fun Array<out Float>.minOrNull(): Float?
fun FloatArray.minOrNull(): Float?
fun DoubleArray.minOrNull(): Double?
fun Iterable<Double>.minOrNull(): Double?
fun Iterable<Float>.minOrNull(): Float?

Returns the smallest element or null if there are no elements.

If any of elements is NaN returns NaN.

Common
JVM
JS
Native
1.4
fun <T : Comparable<T>> Array<out T>.minOrNull(): T?
fun ByteArray.minOrNull(): Byte?
fun ShortArray.minOrNull(): Short?
fun IntArray.minOrNull(): Int?
fun LongArray.minOrNull(): Long?
fun CharArray.minOrNull(): Char?
fun <T : Comparable<T>> Iterable<T>.minOrNull(): T?
@ExperimentalUnsignedTypes fun UIntArray.minOrNull(): UInt?
@ExperimentalUnsignedTypes fun ULongArray.minOrNull(): ULong?
@ExperimentalUnsignedTypes fun UByteArray.minOrNull(): UByte?
@ExperimentalUnsignedTypes fun UShortArray.minOrNull(): UShort?

Returns the smallest element or null if there are no elements.