@ExperimentalUnsignedTypes inline fun <R> UIntArray.maxOfWith( comparator: Comparator<in R>, selector: (UInt) -> R ): R
@ExperimentalUnsignedTypes inline fun <R> ULongArray.maxOfWith( comparator: Comparator<in R>, selector: (ULong) -> R ): R
@ExperimentalUnsignedTypes inline fun <R> UByteArray.maxOfWith( comparator: Comparator<in R>, selector: (UByte) -> R ): R
@ExperimentalUnsignedTypes inline fun <R> UShortArray.maxOfWith( comparator: Comparator<in R>, selector: (UShort) -> R ): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
NoSuchElementException
- if the array is empty.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the collection.
NoSuchElementException
- if the collection is empty.
inline fun <K, V, R> Map<out K, V>.maxOfWith( comparator: Comparator<in R>, selector: (Entry<K, V>) -> R ): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each entry in the map.
NoSuchElementException
- if the map is empty.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/max-of-with.html