minOrNull

Returns the smallest element or null if the sequence is empty.

If any of elements is NaN, this function returns NaN.

The operation is terminal.

Since Kotlin

1.4

Samples


Returns the smallest element or null if the sequence is empty.

If there are multiple equal minimal elements, this function returns the first of those elements.

The operation is terminal.

Since Kotlin

1.4

Samples