swc/crates/swc_bundler/tests/.cache/deno/65abf1d5e46652f4d675a663ba49d7c961ea84d5.ts
2021-11-09 20:42:49 +09:00

26 lines
674 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_xdropWhile.js
import _curry2 from './_curry2.js';
import _xfBase from './_xfBase.js';
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);
};
var _xdropWhile = _curry2(function _xdropWhile(f, xf) { return new XDropWhile(f, xf); });
export default _xdropWhile;