max

fun Array<out Double>.max(): Double? (source)

Platform and version requirements: Kotlin 1.1

fun Array<out Float>.max(): Float? (source)

Platform and version requirements: Kotlin 1.1

fun FloatArray.max(): Float? (source)
fun DoubleArray.max(): Double? (source)
fun Iterable<Double>.max(): Double? (source)

Platform and version requirements: Kotlin 1.1

fun Iterable<Float>.max(): Float? (source)

Platform and version requirements: Kotlin 1.1

Returns the largest element or null if there are no elements.

If any of elements is NaN returns NaN.

fun <T : Comparable<T>> Array<out T>.max(): T? (source)
fun ByteArray.max(): Byte? (source)
fun ShortArray.max(): Short? (source)
fun IntArray.max(): Int? (source)
fun LongArray.max(): Long? (source)
fun CharArray.max(): Char? (source)
fun <T : Comparable<T>> Iterable<T>.max(): T? (source)

Returns the largest element or null if there are no elements.