Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
min
@JvmName("minOrThrow") fun Array<out Double>.min(): Double
(source)
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Array<out Double>.min(): Double?
(source)
Deprecated: Use minOrNull instead.
@JvmName("minOrThrow") fun Array<out Float>.min(): Float
(source)
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Array<out Float>.min(): Float?
(source)
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Returns the smallest element.
If any of elements is NaN
returns NaN
.
Exceptions
NoSuchElementException
- if the array is empty.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <T : Comparable<T>> Array<out T>.min(): T?
(source)
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun UIntArray.min(): UInt?
(source)
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Deprecated: Use minOrNull instead.
Returns the smallest element.
Exceptions
NoSuchElementException
- if the array is empty.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Iterable<Double>.min(): Double?
(source)
Deprecated: Use minOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Iterable<Float>.min(): Float?
(source)
Deprecated: Use minOrNull instead.
Returns the smallest element.
If any of elements is NaN
returns NaN
.
Exceptions
NoSuchElementException
- if the collection is empty.
Deprecated: Use minOrNull instead.
Returns the smallest element.
Exceptions
NoSuchElementException
- if the collection is empty.