Skip to content

Instantly share code, notes, and snippets.

@natac13
Created April 18, 2019 10:54
Show Gist options
  • Select an option

  • Save natac13/76da7bcd83c2d5612493301a7e01bb70 to your computer and use it in GitHub Desktop.

Select an option

Save natac13/76da7bcd83c2d5612493301a7e01bb70 to your computer and use it in GitHub Desktop.
const zipManyWith = curry((fn, ars) => {
const n = Math.min(...map(length, ars));
return map((i) => {
return fn(...map((as) => as[i], ars));
}, range(0, n));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment