min

Common
JVM
JS
Native
1.0
fun Array<out Double>.min(): Double?
fun Array<out Float>.min(): Float?
fun FloatArray.min(): Float?
fun DoubleArray.min(): Double?
fun Iterable<Double>.min(): Double?
fun Iterable<Float>.min(): 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.0
fun <T : Comparable<T>> Array<out T>.min(): T?
fun ByteArray.min(): Byte?
fun ShortArray.min(): Short?
fun IntArray.min(): Int?
fun LongArray.min(): Long?
fun CharArray.min(): Char?
fun <T : Comparable<T>> Iterable<T>.min(): T?
@ExperimentalUnsignedTypes fun UIntArray.min(): UInt?
@ExperimentalUnsignedTypes fun ULongArray.min(): ULong?
@ExperimentalUnsignedTypes fun UByteArray.min(): UByte?
@ExperimentalUnsignedTypes fun UShortArray.min(): UShort?

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