first

fun ComplexFloatArray.first(): ComplexFloat
fun ComplexDoubleArray.first(): ComplexDouble

Returns first element.

Throws

if the array is empty.


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

Returns the first element matching the given predicate.

Throws

if no such element is found.