How to use the uncurryN function from ramda

Find comprehensive JavaScript ramda.uncurryN code examples handpicked from public code repositorys.

34
35
36
37
38
39
40
41
42
43
44
45
console.log('\n=== adjust ===');


console.log(R.adjust(1, R.subtract(__, 10), [100, 200, 300]));


const adjustSubtract = R.adjust(__, R.subtract(__, 10));
const uncurryAdjustSubtract = R.uncurryN(2, adjustSubtract);


console.log(adjustSubtract(1)([100, 200, 300]));
console.log(uncurryAdjustSubtract(1, [100, 200, 300]));
fork icon0
star icon0
watch icon0

+ 2 other calls in file

4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
 * @see R.curry
 * @example
 *
 *      var addFour = a => b => c => d => a + b + c + d;
 *
 *      var uncurriedAddFour = R.uncurryN(4, addFour);
 *      uncurriedAddFour(1, 2, 3, 4); //=> 10
 */
var uncurryN = _curry2(function uncurryN(depth, fn) {
    return curryN(depth, function () {
fork icon0
star icon0
watch icon0

+ 17 other calls in file

51
52
53
54
55
56
57
58
59
60
61
// Lifts a Rand function to act on a game context
const liftRand = processing(R.lensProp('seed'));
// Lifts a deck function to act on a game context
const liftDeck = processing(R.lensProp('deck'));
// Lifts a player function to act on a game context
const liftPlayer = R.uncurryN(2, idx => processing(Player.lens(idx)));


const Player = {
  // Player -> Number
  countInf: R.pipe(
fork icon0
star icon0
watch icon0

+ 13 other calls in file

14167
14168
14169
14170
14171
14172
14173
14174
14175
* @see R.curry
* @example
*
*      const addFour = a => b => c => d => a + b + c + d;
*
*      const uncurriedAddFour = R.uncurryN(4, addFour);
*      uncurriedAddFour(1, 2, 3, 4); //=> 10
*/

fork icon0
star icon0
watch icon2

+ 3 other calls in file

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)