forked from waja/action-debian-package
41 lines
745 B
JavaScript
41 lines
745 B
JavaScript
|
var _curry2 =
|
||
|
/*#__PURE__*/
|
||
|
require("./_curry2");
|
||
|
|
||
|
var _xfBase =
|
||
|
/*#__PURE__*/
|
||
|
require("./_xfBase");
|
||
|
|
||
|
var XDropWhile =
|
||
|
/*#__PURE__*/
|
||
|
function () {
|
||
|
function XDropWhile(f, xf) {
|
||
|
this.xf = xf;
|
||
|
this.f = f;
|
||
|
}
|
||
|
|
||
|
XDropWhile.prototype['@@transducer/init'] = _xfBase.init;
|
||
|
XDropWhile.prototype['@@transducer/result'] = _xfBase.result;
|
||
|
|
||
|
XDropWhile.prototype['@@transducer/step'] = function (result, input) {
|
||
|
if (this.f) {
|
||
|
if (this.f(input)) {
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
this.f = null;
|
||
|
}
|
||
|
|
||
|
return this.xf['@@transducer/step'](result, input);
|
||
|
};
|
||
|
|
||
|
return XDropWhile;
|
||
|
}();
|
||
|
|
||
|
var _xdropWhile =
|
||
|
/*#__PURE__*/
|
||
|
_curry2(function _xdropWhile(f, xf) {
|
||
|
return new XDropWhile(f, xf);
|
||
|
});
|
||
|
|
||
|
module.exports = _xdropWhile;
|