stdlib
1.0
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
JVM
stdlib
/
kotlin.collections
/
max
max
JVM
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
FloatArray
.
max
(
)
:
Float
?
(
source
)
fun
DoubleArray
.
max
(
)
:
Double
?
(
source
)
fun
CharArray
.
max
(
)
:
Char
?
(
source
)
fun
<
T
:
Comparable
<
T
>
>
Iterable
<
T
>
.
max
(
)
:
T
?
(
source
)
Deprecated
Use maxOrNull instead.
Replace with
this.maxOrNull()
Content copied to clipboard
Since Kotlin
1.0