1 | var _curry2 =
|
2 |
|
3 | require("./_curry2");
|
4 |
|
5 | var _reduced =
|
6 |
|
7 | require("./_reduced");
|
8 |
|
9 | var _xfBase =
|
10 |
|
11 | require("./_xfBase");
|
12 |
|
13 | var XTakeWhile =
|
14 |
|
15 | function () {
|
16 | function XTakeWhile(f, xf) {
|
17 | this.xf = xf;
|
18 | this.f = f;
|
19 | }
|
20 |
|
21 | XTakeWhile.prototype['@@transducer/init'] = _xfBase.init;
|
22 | XTakeWhile.prototype['@@transducer/result'] = _xfBase.result;
|
23 |
|
24 | XTakeWhile.prototype['@@transducer/step'] = function (result, input) {
|
25 | return this.f(input) ? this.xf['@@transducer/step'](result, input) : _reduced(result);
|
26 | };
|
27 |
|
28 | return XTakeWhile;
|
29 | }();
|
30 |
|
31 | var _xtakeWhile =
|
32 |
|
33 | _curry2(function _xtakeWhile(f, xf) {
|
34 | return new XTakeWhile(f, xf);
|
35 | });
|
36 |
|
37 | module.exports = _xtakeWhile; |
\ | No newline at end of file |