update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
34
node_modules/ramda/src/internal/_xtap.js
generated
vendored
Normal file
34
node_modules/ramda/src/internal/_xtap.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
var _curry2 =
|
||||
/*#__PURE__*/
|
||||
require("./_curry2");
|
||||
|
||||
var _xfBase =
|
||||
/*#__PURE__*/
|
||||
require("./_xfBase");
|
||||
|
||||
var XTap =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function XTap(f, xf) {
|
||||
this.xf = xf;
|
||||
this.f = f;
|
||||
}
|
||||
|
||||
XTap.prototype['@@transducer/init'] = _xfBase.init;
|
||||
XTap.prototype['@@transducer/result'] = _xfBase.result;
|
||||
|
||||
XTap.prototype['@@transducer/step'] = function (result, input) {
|
||||
this.f(input);
|
||||
return this.xf['@@transducer/step'](result, input);
|
||||
};
|
||||
|
||||
return XTap;
|
||||
}();
|
||||
|
||||
var _xtap =
|
||||
/*#__PURE__*/
|
||||
_curry2(function _xtap(f, xf) {
|
||||
return new XTap(f, xf);
|
||||
});
|
||||
|
||||
module.exports = _xtap;
|
Loading…
Add table
Add a link
Reference in a new issue