maxBy

Common
JVM
JS
Native
1.0
@DeprecatedSinceKotlin("1.4") inline fun <T, R : Comparable<R>> Array<out T>.maxBy(
    selector: (T) -> R
): T?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> ByteArray.maxBy(
    selector: (Byte) -> R
): Byte?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> ShortArray.maxBy(
    selector: (Short) -> R
): Short?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> IntArray.maxBy(
    selector: (Int) -> R
): Int?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> LongArray.maxBy(
    selector: (Long) -> R
): Long?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> FloatArray.maxBy(
    selector: (Float) -> R
): Float?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> DoubleArray.maxBy(
    selector: (Double) -> R
): Double?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> BooleanArray.maxBy(
    selector: (Boolean) -> R
): Boolean?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <R : Comparable<R>> CharArray.maxBy(
    selector: (Char) -> R
): Char?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <T, R : Comparable<R>> Iterable<T>.maxBy(
    selector: (T) -> R
): T?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") inline fun <K, V, R : Comparable<R>> Map<out K, V>.maxBy(
    selector: (Entry<K, V>) -> R
): Entry<K, V>?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UIntArray.maxBy(
    selector: (UInt) -> R
): UInt?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes inline fun <R : Comparable<R>> ULongArray.maxBy(
    selector: (ULong) -> R
): ULong?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UByteArray.maxBy(
    selector: (UByte) -> R
): UByte?
Deprecated: Use maxByOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes inline fun <R : Comparable<R>> UShortArray.maxBy(
    selector: (UShort) -> R
): UShort?
Deprecated: Use maxByOrNull instead.