<commit_before>var isFunction = require("is_function"),
    fastSlice = require("fast_slice"),
    createFunctionWrapper = require("create_function_wrapper");


function baseCurryRight(fn, args) {
    var bound = createFunctionWrapper(fn),
        wrapper = bound.__wrapper__;

    wrapper.addArgsRight(args);

    return bound;
}

module.exports = function curryRight(fn) {
    if (!isFunction(fn)) {
        throw new TypeError("curry(fn, ...args) fn must be a function");
    }
    return baseCurryRight(fn, arguments.length > 1 ? fastSlice(arguments, 1) : null);
};
<commit_msg>fixed error message<commit_after>var isFunction = require("is_function"),
    fastSlice = require("fast_slice"),
    createFunctionWrapper = require("create_function_wrapper");


function baseCurryRight(fn, args) {
    var bound = createFunctionWrapper(fn),
        wrapper = bound.__wrapper__;

    wrapper.addArgsRight(args);

    return bound;
}

module.exports = function curryRight(fn) {
    if (!isFunction(fn)) {
        throw new TypeError("curryRight(fn, ...args) fn must be a function");
    }
    return baseCurryRight(fn, arguments.length > 1 ? fastSlice(arguments, 1) : null);
};

{'fraction_non_alphanumeric': 0.12595744680851065, 'fraction_numerical': 0.003404255319148936, 'mean_word_length': 4.090909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7606849', 'n_tokens_mistral': 354, 'n_tokens_neox': 341, 'n_words': 80}