Skip to content

zipWith

zipWith<A, B, C>(f): (other) => (data) => readonly C[]

Defined in: Data/Arr.ts:416

Combines elements from two arrays using a function. Stops at the shorter array.

A

B

C

(a, b) => C

(other) => (data) => readonly C[]

pipe([1, 2], Arr.zipWith((a, b) => a + b, ["a", "b"])); // ["1a", "2b"]