maxWithOrNull
@ExperimentalUnsignedTypes fun UIntArray.maxWithOrNull(
comparator: Comparator<in UInt>
): UInt?
(source)
@ExperimentalUnsignedTypes fun ULongArray.maxWithOrNull(
comparator: Comparator<in ULong>
): ULong?
(source)
@ExperimentalUnsignedTypes fun UByteArray.maxWithOrNull(
comparator: Comparator<in UByte>
): UByte?
(source)
@ExperimentalUnsignedTypes fun UShortArray.maxWithOrNull(
comparator: Comparator<in UShort>
): UShort?
(source)
Returns the first element having the largest value according to the provided comparator or null
if there are no elements.
fun <K, V> Map<out K, V>.maxWithOrNull(
comparator: Comparator<in Entry<K, V>>
): Entry<K, V>?
(source)
Returns the first entry having the largest value according to the provided comparator or null
if there are no entries.