swc/bundler/tests/.cache/deno/6a399f1a72481940ab22e9c8c25afd7bca926e1d.ts

15 lines
403 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_createPartialApplicator.js
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));
});
});
}