max With Or Null
fun DoubleArray.maxWithOrNull(comparator: Comparator<in Double>): Double?
Content copied to clipboard
fun BooleanArray.maxWithOrNull(comparator: Comparator<in Boolean>): Boolean?
Content copied to clipboard
fun UShortArray.maxWithOrNull(comparator: Comparator<in UShort>): UShort?
Content copied to clipboard
Returns the first element having the largest value according to the provided comparator or null
if there are no elements.
Since Kotlin
1.4
inline fun <K, V> Map<out K, V>.maxWithOrNull(comparator: Comparator<in Map.Entry<K, V>>): Map.Entry<K, V>?
Content copied to clipboard
Returns the first entry having the largest value according to the provided comparator or null
if there are no entries.
Since Kotlin
1.4