Share your code. Components are building blocks, you are the architect.

utils/lift-n
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
"lifts" a function to be the specified arity, so that it may "map over" that

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/lift-n in your project
npm i @bit/bit.ramda.utils.lift-n
Copied

liftN (fn:Function) : Function

“lifts” a function to be the specified arity, so that it may “map over” that many lists, Functions or other objects that satisfy the FantasyLand Apply spec.

Example

var madd3 = R.liftN(3, (...args) => R.sum(args));
     madd3([1,2,3], [1,2,3], [1]); //=> [3, 4, 5, 4, 5, 6, 5, 6, 7]

Argument

fn: Function

The function to lift into higher context

Returns

Function

The lifted function.