maxOf

Common
JVM
JS
Native
1.4
inline fun <T> Array<out T>.maxOf(
    selector: (T) -> Double
): Double

(source)
inline fun ByteArray.maxOf(
    selector: (Byte) -> Double
): Double

(source)
inline fun ShortArray.maxOf(
    selector: (Short) -> Double
): Double

(source)
inline fun IntArray.maxOf(selector: (Int) -> Double): Double
(source)
inline fun LongArray.maxOf(
    selector: (Long) -> Double
): Double

(source)
inline fun FloatArray.maxOf(
    selector: (Float) -> Double
): Double

(source)
inline fun DoubleArray.maxOf(
    selector: (Double) -> Double
): Double

(source)
inline fun BooleanArray.maxOf(
    selector: (Boolean) -> Double
): Double

(source)
inline fun CharArray.maxOf(
    selector: (Char) -> Double
): Double

(source)
inline fun <T> Array<out T>.maxOf(
    selector: (T) -> Float
): Float

(source)
inline fun ByteArray.maxOf(selector: (Byte) -> Float): Float
(source)
inline fun ShortArray.maxOf(
    selector: (Short) -> Float
): Float

(source)
inline fun IntArray.maxOf(selector: (Int) -> Float): Float
(source)
inline fun LongArray.maxOf(selector: (Long) -> Float): Float
(source)
inline fun FloatArray.maxOf(
    selector: (Float) -> Float
): Float

(source)
inline fun DoubleArray.maxOf(
    selector: (Double) -> Float
): Float

(source)
inline fun BooleanArray.maxOf(
    selector: (Boolean) -> Float
): Float

(source)
inline fun CharArray.maxOf(selector: (Char) -> Float): Float
(source)
@ExperimentalUnsignedTypes inline fun UIntArray.maxOf(
    selector: (UInt) -> Double
): Double

(source)
@ExperimentalUnsignedTypes inline fun ULongArray.maxOf(
    selector: (ULong) -> Double
): Double

(source)
@ExperimentalUnsignedTypes inline fun UByteArray.maxOf(
    selector: (UByte) -> Double
): Double

(source)
@ExperimentalUnsignedTypes inline fun UShortArray.maxOf(
    selector: (UShort) -> Double
): Double

(source)
@ExperimentalUnsignedTypes inline fun UIntArray.maxOf(
    selector: (UInt) -> Float
): Float

(source)
@ExperimentalUnsignedTypes inline fun ULongArray.maxOf(
    selector: (ULong) -> Float
): Float

(source)
@ExperimentalUnsignedTypes inline fun UByteArray.maxOf(
    selector: (UByte) -> Float
): Float

(source)
@ExperimentalUnsignedTypes inline fun UShortArray.maxOf(
    selector: (UShort) -> Float
): Float

(source)

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.

Exceptions

NoSuchElementException - if the array is empty.

Common
JVM
JS
Native
1.4
inline fun <T, R : Comparable<R>> Array<out T>.maxOf(
    selector: (T) -> R
): R

(source)
inline fun <R : Comparable<R>> ByteArray.maxOf(
    selector: (Byte) -> R
): R

(source)
inline fun <R : Comparable<R>> ShortArray.maxOf(
    selector: (Short) -> R
): R

(source)
inline fun <R : Comparable<R>> IntArray.maxOf(
    selector: (Int) -> R
): R

(source)
inline fun <R : Comparable<R>> LongArray.maxOf(
    selector: (Long) -> R
): R

(source)
inline fun <R : Comparable<R>> FloatArray.maxOf(
    selector: (Float) -> R
): R

(source)
inline fun <R : Comparable<R>> DoubleArray.maxOf(
    selector: (Double) -> R
): R

(source)
inline fun <R : Comparable<R>> BooleanArray.maxOf(
    selector: (Boolean) -> R
): R

(source)
inline fun <R : Comparable<R>> CharArray.maxOf(
    selector: (Char) -> R
): R

(source)
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UIntArray.maxOf(
    selector: (UInt) -> R
): R

(source)
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> ULongArray.maxOf(
    selector: (ULong) -> R
): R

(source)
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UByteArray.maxOf(
    selector: (UByte) -> R
): R

(source)
@ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UShortArray.maxOf(
    selector: (UShort) -> R
): R

(source)

Returns the largest value among all values produced by selector function applied to each element in the array.

Exceptions

NoSuchElementException - if the array is empty.

Common
JVM
JS
Native
1.4
inline fun <T> Iterable<T>.maxOf(
    selector: (T) -> Double
): Double

(source)
inline fun <T> Iterable<T>.maxOf(
    selector: (T) -> Float
): Float

(source)

Returns the largest value among all values produced by selector function applied to each element in the collection.

If any of values produced by selector function is NaN, the returned result is NaN.

Exceptions

NoSuchElementException - if the collection is empty.

Common
JVM
JS
Native
1.4
inline fun <T, R : Comparable<R>> Iterable<T>.maxOf(
    selector: (T) -> R
): R

(source)

Returns the largest value among all values produced by selector function applied to each element in the collection.

Exceptions

NoSuchElementException - if the collection is empty.

Common
JVM
JS
Native
1.4
inline fun <K, V> Map<out K, V>.maxOf(
    selector: (Entry<K, V>) -> Double
): Double

(source)
inline fun <K, V> Map<out K, V>.maxOf(
    selector: (Entry<K, V>) -> Float
): Float

(source)

Returns the largest value among all values produced by selector function applied to each entry in the map.

If any of values produced by selector function is NaN, the returned result is NaN.

Exceptions

NoSuchElementException - if the map is empty.

Common
JVM
JS
Native
1.4
inline fun <K, V, R : Comparable<R>> Map<out K, V>.maxOf(
    selector: (Entry<K, V>) -> R
): R

(source)

Returns the largest value among all values produced by selector function applied to each entry in the map.

Exceptions

NoSuchElementException - if the map is empty.