main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
307 bytes
|
Line | |
---|
1 | import _arity from "./_arity.js";
|
---|
2 | import _curry2 from "./_curry2.js";
|
---|
3 | export default function _createPartialApplicator(concat) {
|
---|
4 | return _curry2(function (fn, args) {
|
---|
5 | return _arity(Math.max(0, fn.length - args.length), function () {
|
---|
6 | return fn.apply(this, concat(args, arguments));
|
---|
7 | });
|
---|
8 | });
|
---|
9 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.