max Of
Returns the largest value among all values produced by selector function applied to each element in the array.
If any of values produced by selector function is NaN, the returned result is NaN.
Throws
if the array is empty.
inline fun <R : Comparable<R>> ByteBuffer.maxOf(selector: (Byte) -> R): R
Content copied to clipboard
inline fun <R : Comparable<R>> ShortBuffer.maxOf(selector: (Short) -> R): R
Content copied to clipboard
inline fun <R : Comparable<R>> LongBuffer.maxOf(selector: (Long) -> R): R
Content copied to clipboard
inline fun <R : Comparable<R>> FloatBuffer.maxOf(selector: (Float) -> R): R
Content copied to clipboard
inline fun <R : Comparable<R>> DoubleBuffer.maxOf(selector: (Double) -> R): R
Content copied to clipboard
inline fun <R : Comparable<R>> CharBuffer.maxOf(selector: (Char) -> R): R
Content copied to clipboard
Returns the largest value among all values produced by selector function applied to each element in the array.
Throws
if the array is empty.