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:
372 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var _arity =
|
---|
| 2 | /*#__PURE__*/
|
---|
| 3 | require("./_arity.js");
|
---|
| 4 |
|
---|
| 5 | var _curry2 =
|
---|
| 6 | /*#__PURE__*/
|
---|
| 7 | require("./_curry2.js");
|
---|
| 8 |
|
---|
| 9 | function _createPartialApplicator(concat) {
|
---|
| 10 | return _curry2(function (fn, args) {
|
---|
| 11 | return _arity(Math.max(0, fn.length - args.length), function () {
|
---|
| 12 | return fn.apply(this, concat(args, arguments));
|
---|
| 13 | });
|
---|
| 14 | });
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | module.exports = _createPartialApplicator; |
---|
Note:
See
TracBrowser
for help on using the repository browser.