fun Array<out Double>.max(): Double?
Platform and version requirements: Kotlin 1.1
fun Array<out Float>.max(): Float?
Platform and version requirements: Kotlin 1.1
fun FloatArray.max(): Float?
fun DoubleArray.max(): Double?
fun Iterable<Double>.max(): Double?
Platform and version requirements: Kotlin 1.1
fun Iterable<Float>.max(): Float?
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?
fun ByteArray.max(): Byte?
fun ShortArray.max(): Short?
fun IntArray.max(): Int?
fun LongArray.max(): Long?
fun CharArray.max(): Char?
fun <T : Comparable<T>> Iterable<T>.max(): T?
Returns the largest element or null
if there are no elements.
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/max.html