max

Deprecated

Use maxOrNull instead.

Replace with

this.maxOrNull()

Since Kotlin

1.1

fun <T : Comparable<T>> Array<out T>.max(): T?(source)
fun <T : Comparable<T>> Iterable<T>.max(): T?(source)

Deprecated

Use maxOrNull instead.

Replace with

this.maxOrNull()

Since Kotlin

1.0

@ExperimentalUnsignedTypes
fun UIntArray.max(): UInt?(source)
@ExperimentalUnsignedTypes
fun ULongArray.max(): ULong?(source)
@ExperimentalUnsignedTypes
fun UByteArray.max(): UByte?(source)
@ExperimentalUnsignedTypes
fun UShortArray.max(): UShort?(source)

Deprecated

Use maxOrNull instead.

Replace with

this.maxOrNull()

Since Kotlin

1.3