Skip to content

zip

zip<B>(other): <A>(data) => readonly readonly [A, B][]

Defined in: Data/Arr.ts:398

Pairs up elements from two arrays. Stops at the shorter array.

B

readonly B[]

<A>(data) => readonly readonly [A, B][]

pipe([1, 2, 3], Arr.zip(["a", "b"])); // [[1, "a"], [2, "b"]]