max
Returns the largest element.
If any of elements is NaN
returns NaN
.
The operation is terminal.
Since Kotlin
1.7Throws
if the sequence is empty.
Returns the largest element.
The operation is terminal.
Since Kotlin
1.7Throws
if the sequence is empty.
Deprecated
Warning since 1.4
Error since 1.5
Hidden since 1.6
Use maxOrNull instead.
Replace with
this.maxOrNull()
Content copied to clipboard
Since Kotlin
1.1Deprecated
Warning since 1.4
Error since 1.5
Hidden since 1.6
Use maxOrNull instead.
Replace with
this.maxOrNull()
Content copied to clipboard