Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
max
@JvmName("maxOrThrow") fun Array<out Double>.max(): Double
(source)
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Array<out Double>.max(): Double?
(source)
Deprecated: Use maxOrNull instead.
@JvmName("maxOrThrow") fun Array<out Float>.max(): Float
(source)
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Array<out Float>.max(): Float?
(source)
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Returns the largest element.
If any of elements is NaN
returns NaN
.
Exceptions
NoSuchElementException
- if the array is empty.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun <T : Comparable<T>> Array<out T>.max(): T?
(source)
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") @ExperimentalUnsignedTypes fun UIntArray.max(): UInt?
(source)
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Deprecated: Use maxOrNull instead.
Returns the largest element.
Exceptions
NoSuchElementException
- if the array is empty.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Iterable<Double>.max(): Double?
(source)
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4", "1.5", "1.6") fun Iterable<Float>.max(): Float?
(source)
Deprecated: Use maxOrNull instead.
Returns the largest element.
If any of elements is NaN
returns NaN
.
Exceptions
NoSuchElementException
- if the collection is empty.
Deprecated: Use maxOrNull instead.
Returns the largest element.
Exceptions
NoSuchElementException
- if the collection is empty.