withIndex

fun ComplexFloatArray.withIndex(): Iterable<IndexedValue<ComplexFloat>>
fun ComplexDoubleArray.withIndex(): Iterable<IndexedValue<ComplexDouble>>

Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.