1 var createCurry = require('../internal/createCurry');
3 /** Used to compose bitmasks for wrapper metadata. */
4 var CURRY_RIGHT_FLAG = 16;
7 * This method is like `_.curry` except that arguments are applied to `func`
8 * in the manner of `_.partialRight` instead of `_.partial`.
10 * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
11 * builds, may be used as a placeholder for provided arguments.
13 * **Note:** This method does not set the "length" property of curried functions.
18 * @param {Function} func The function to curry.
19 * @param {number} [arity=func.length] The arity of `func`.
20 * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
21 * @returns {Function} Returns the new curried function.
24 * var abc = function(a, b, c) {
28 * var curried = _.curryRight(abc);
39 * // using placeholders
40 * curried(3)(1, _)(2);
43 var curryRight = createCurry(CURRY_RIGHT_FLAG);
45 // Assign default placeholders.
46 curryRight.placeholder = {};
48 module.exports = curryRight;