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