elementAtOrElse

inline fun ComplexFloatArray.elementAtOrElse(index: Int, defaultValue: (Int) -> ComplexFloat): ComplexFloat
inline fun ComplexDoubleArray.elementAtOrElse(index: Int, defaultValue: (Int) -> ComplexDouble): ComplexDouble

Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.