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

utils/lift
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
"lifts" a function of arity > 1 so that it may "map over" a list, Function or other

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 in your project
npm i @bit/bit.ramda.utils.lift
Copied

lift (fn:Function) : Function

“lifts” a function of arity > 1 so that it may “map over” a list, Function or other object that satisfies the FantasyLand Apply spec.

Example

var madd3 = R.lift((a, b, c) => a + b + c);

     madd3([1,2,3], [1,2,3], [1]); //=> [3, 4, 5, 4, 5, 6, 5, 6, 7]

     var madd5 = R.lift((a, b, c, d, e) => a + b + c + d + e);

     madd5([1,2], [3], [4, 5], [6], [7, 8]); //=> [21, 22, 22, 23, 22, 23, 23, 24]

Argument

fn: Function

The function to lift into higher context

Returns

Function

The lifted function.