indexOfFirst

inline fun ComplexFloatArray.indexOfFirst(predicate: (ComplexFloat) -> Boolean): Int
inline fun ComplexDoubleArray.indexOfFirst(predicate: (ComplexDouble) -> Boolean): Int

Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.