maxOfWithOrNull

inline fun <R> ComplexFloatArray.maxOfWithOrNull(comparator: Comparator<in R>, selector: (ComplexFloat) -> R): R?
inline fun <R> ComplexDoubleArray.maxOfWithOrNull(comparator: Comparator<in R>, selector: (ComplexDouble) -> R): R?

Returns the largest 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.