Files
infocom-systems-design/node_modules/ramda/es/internal/_createPartialApplicator.js
2025-10-03 22:27:28 +03:00

9 lines
307 B
JavaScript
Executable File

import _arity from "./_arity.js";
import _curry2 from "./_curry2.js";
export default function _createPartialApplicator(concat) {
return _curry2(function (fn, args) {
return _arity(Math.max(0, fn.length - args.length), function () {
return fn.apply(this, concat(args, arguments));
});
});
}