min By Or Null
inline fun <R : Comparable<R>> ByteBuffer.minByOrNull(selector: (Byte) -> R): Byte?
Content copied to clipboard
inline fun <R : Comparable<R>> ShortBuffer.minByOrNull(selector: (Short) -> R): Short?
Content copied to clipboard
inline fun <R : Comparable<R>> IntBuffer.minByOrNull(selector: (Int) -> R): Int?
Content copied to clipboard
inline fun <R : Comparable<R>> LongBuffer.minByOrNull(selector: (Long) -> R): Long?
Content copied to clipboard
inline fun <R : Comparable<R>> FloatBuffer.minByOrNull(selector: (Float) -> R): Float?
Content copied to clipboard
inline fun <R : Comparable<R>> DoubleBuffer.minByOrNull(selector: (Double) -> R): Double?
Content copied to clipboard
inline fun <R : Comparable<R>> CharBuffer.minByOrNull(selector: (Char) -> R): Char?
Content copied to clipboard
Returns the first element yielding the smallest value of the given function or null
if there are no elements.
Samples
kool.buffers.Collections.Aggregates.minByOrNull