minOfWithOrNull

inline fun <R> ByteBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Byte) -> R): R?
inline fun <R> ShortBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Short) -> R): R?
inline fun <R> IntBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Int) -> R): R?
inline fun <R> LongBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Long) -> R): R?
inline fun <R> FloatBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Float) -> R): R?
inline fun <R> DoubleBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Double) -> R): R?
inline fun <R> CharBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Char) -> R): R?

Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.