minOfWith

inline fun <R> ComplexFloatArray.minOfWith(comparator: Comparator<in R>, selector: (ComplexFloat) -> R): R
inline fun <R> ComplexDoubleArray.minOfWith(comparator: Comparator<in R>, selector: (ComplexDouble) -> 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.