min

Common
JS
Native
1.7
@JvmName("minOrThrow") fun Sequence<Double>.min(): Double
(source)
JVM
1.1
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Sequence<Double>.min(): Double?
(source)
Deprecated: Use minOrNull instead.
Common
JS
Native
1.7
@JvmName("minOrThrow") fun Sequence<Float>.min(): Float
(source)
JVM
1.1
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Sequence<Float>.min(): Float?
(source)
Deprecated: Use minOrNull instead.

Returns the smallest element.

If any of elements is NaN returns NaN.

The operation is terminal.

Exceptions

NoSuchElementException - if the sequence is empty.

Common
JS
Native
1.7
@JvmName("minOrThrow") fun <T : Comparable<T>> Sequence<T>.min(): T
(source)
JVM
1.0
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <T : Comparable<T>> Sequence<T>.min(): T?
(source)
Deprecated: Use minOrNull instead.

Returns the smallest element.

The operation is terminal.

Exceptions

NoSuchElementException - if the sequence is empty.