zip

infix fun <R> ComplexFloatArray.zip(other: Array<out R>): List<Pair<ComplexFloat, R>>
infix fun <R> ComplexDoubleArray.zip(other: Array<out R>): List<Pair<ComplexDouble, R>>
infix fun ComplexFloatArray.zip(other: ComplexFloatArray): List<Pair<ComplexFloat, ComplexFloat>>
infix fun ComplexDoubleArray.zip(other: ComplexDoubleArray): List<Pair<ComplexDouble, ComplexDouble>>

Returns a list of pairs built from the elements of this array and the other array with the same index. The returned list has length of the shortest collection.


inline fun <R, V> ComplexFloatArray.zip(other: Array<out R>, transform: (a: ComplexFloat, b: R) -> V): List<V>
inline fun <R, V> ComplexDoubleArray.zip(other: Array<out R>, transform: (a: ComplexDouble, b: R) -> V): List<V>

Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.


infix fun <R> ComplexFloatArray.zip(other: Iterable<R>): List<Pair<ComplexFloat, R>>
infix fun <R> ComplexDoubleArray.zip(other: Iterable<R>): List<Pair<ComplexDouble, R>>

Returns a list of pairs built from the elements of this collection and other array with the same index. The returned list has length of the shortest collection.


inline fun <R, V> ComplexFloatArray.zip(other: Iterable<R>, transform: (a: ComplexFloat, b: R) -> V): List<V>
inline fun <R, V> ComplexDoubleArray.zip(other: Iterable<R>, transform: (a: ComplexDouble, b: R) -> V): List<V>

Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.


inline fun <V> ComplexFloatArray.zip(other: ComplexFloatArray, transform: (a: ComplexFloat, b: ComplexFloat) -> V): List<V>
inline fun <V> ComplexDoubleArray.zip(other: ComplexDoubleArray, transform: (a: ComplexDouble, b: ComplexDouble) -> V): List<V>

Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest array.