source: node_modules/ramda/src/internal/_xtap.js

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: 543 bytes
RevLine 
[d24f17c]1var _xfBase =
2/*#__PURE__*/
3require("./_xfBase.js");
4
5var XTap =
6/*#__PURE__*/
7function () {
8 function XTap(f, xf) {
9 this.xf = xf;
10 this.f = f;
11 }
12
13 XTap.prototype['@@transducer/init'] = _xfBase.init;
14 XTap.prototype['@@transducer/result'] = _xfBase.result;
15
16 XTap.prototype['@@transducer/step'] = function (result, input) {
17 this.f(input);
18 return this.xf['@@transducer/step'](result, input);
19 };
20
21 return XTap;
22}();
23
24function _xtap(f) {
25 return function (xf) {
26 return new XTap(f, xf);
27 };
28}
29
30module.exports = _xtap;
Note: See TracBrowser for help on using the repository browser.