last

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

Returns the last element.

Throws

if the array is empty.


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

Returns the last element matching the given predicate.

Throws

if no such element is found.