min

@JvmName(name = "minOrThrow")
fun Sequence<Double>.min(): Double(source)
@JvmName(name = "minOrThrow")
fun Sequence<Float>.min(): Float(source)

Returns the smallest element.

If any of elements is NaN returns NaN.

The operation is terminal.

Since Kotlin

1.7

Throws

if the sequence is empty.


@JvmName(name = "minOrThrow")
fun <T : Comparable<T>> Sequence<T>.min(): T(source)

Returns the smallest element.

The operation is terminal.

Since Kotlin

1.7

Throws

if the sequence is empty.

Deprecated

Warning since 1.4

Error since 1.5

Hidden since 1.6

Use minOrNull instead.

Replace with

this.minOrNull()

Since Kotlin

1.1

fun <T : Comparable<T>> Sequence<T>.min(): T?(source)

Deprecated

Warning since 1.4

Error since 1.5

Hidden since 1.6

Use minOrNull instead.

Replace with

this.minOrNull()

Since Kotlin

1.0