max

fun max(x: IntArray): Int
fun max(x: LongArray): Long

Return

the maximum value in the array

Parameters

x

the array to search, must not be null or empty