Skip to content

zipWith

zipWith(arr1, arr2, fn) → array · Array

Combine two arrays element-by-element using a merge function.

  • arr1 (required): first array

  • arr2 (required): second array

  • fn (required): lambda (elem1, elem2) -> combined

utlx
zipWith([1, 2, 3], [10, 20, 30], (a, b) -> a + b)  // [11, 22, 33]

Released under AGPL-3.0.