minOrNull

kotlin-stdlib / kotlin.collections / minOrNull
 

Platform and version requirements: JVM (1.4), JS (1.4), 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. 
 

Platform and version requirements: JVM (1.4), JS (1.4), 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. 


    
{'path': 'public/docs/kotlin~1.7/api/latest/jvm/stdlib/kotlin.collections/min-or-null.html', 'source': 'DevDocs.IO'}