minByOrNull

inline fun <R : Comparable<R>> ByteBuffer.minByOrNull(selector: (Byte) -> R): Byte?
inline fun <R : Comparable<R>> ShortBuffer.minByOrNull(selector: (Short) -> R): Short?
inline fun <R : Comparable<R>> IntBuffer.minByOrNull(selector: (Int) -> R): Int?
inline fun <R : Comparable<R>> LongBuffer.minByOrNull(selector: (Long) -> R): Long?
inline fun <R : Comparable<R>> FloatBuffer.minByOrNull(selector: (Float) -> R): Float?
inline fun <R : Comparable<R>> DoubleBuffer.minByOrNull(selector: (Double) -> R): Double?
inline fun <R : Comparable<R>> CharBuffer.minByOrNull(selector: (Char) -> R): Char?

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