Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
max
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Sequence<Double>.max(): Double?
(source)
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Sequence<Float>.max(): Float?
(source)
Deprecated: Use maxOrNull instead.
Returns the largest element.
If any of elements is NaN
returns NaN
.
The operation is terminal.
Exceptions
NoSuchElementException
- if the sequence is empty.
Deprecated: Use maxOrNull instead.
Returns the largest element.
The operation is terminal.
Exceptions
NoSuchElementException
- if the sequence is empty.