minOfWith

inline fun <R> ByteBuffer.minOfWith(comparator: Comparator<in R>, selector: (Byte) -> R): R
inline fun <R> ShortBuffer.minOfWith(comparator: Comparator<in R>, selector: (Short) -> R): R
inline fun <R> IntBuffer.minOfWith(comparator: Comparator<in R>, selector: (Int) -> R): R
inline fun <R> LongBuffer.minOfWith(comparator: Comparator<in R>, selector: (Long) -> R): R
inline fun <R> FloatBuffer.minOfWith(comparator: Comparator<in R>, selector: (Float) -> R): R
inline fun <R> DoubleBuffer.minOfWith(comparator: Comparator<in R>, selector: (Double) -> R): R
inline fun <R> CharBuffer.minOfWith(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.

Throws

if the array is empty.