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
|
Line | |
---|
1 | var _xfBase =
|
---|
2 | /*#__PURE__*/
|
---|
3 | require("./_xfBase.js");
|
---|
4 |
|
---|
5 | var XTap =
|
---|
6 | /*#__PURE__*/
|
---|
7 | function () {
|
---|
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 |
|
---|
24 | function _xtap(f) {
|
---|
25 | return function (xf) {
|
---|
26 | return new XTap(f, xf);
|
---|
27 | };
|
---|
28 | }
|
---|
29 |
|
---|
30 | module.exports = _xtap; |
---|
Note:
See
TracBrowser
for help on using the repository browser.