Skip to content

zipWith

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

Defined in: Core/Arr.ts:259

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

A

B

C

(a, b) => C

readonly B[]

(data): readonly C[]

readonly A[]

readonly C[]

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