deno.land / x / rambda@v9.1.1 / source / zipWith.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { curry } from './curry.js'import { take } from './take.js'
function zipWithFn( fn, x, y){ return take(x.length > y.length ? y.length : x.length, x).map((xInstance, i) => fn(xInstance, y[ i ]))}
export const zipWith = curry(zipWithFn)
rambda

Version Info

Tagged at
2 months ago