Skip to main content
Module

x/ramda/internal/_xtakeWhile.js

:ram: Practical functional Javascript
Very Popular
Go to Latest
File
import _curry2 from './_curry2';import _reduced from './_reduced';import _xfBase from './_xfBase';

function XTakeWhile(f, xf) { this.xf = xf; this.f = f;}XTakeWhile.prototype['@@transducer/init'] = _xfBase.init;XTakeWhile.prototype['@@transducer/result'] = _xfBase.result;XTakeWhile.prototype['@@transducer/step'] = function(result, input) { return this.f(input) ? this.xf['@@transducer/step'](result, input) : _reduced(result);};
var _xtakeWhile = _curry2(function _xtakeWhile(f, xf) { return new XTakeWhile(f, xf); });export default _xtakeWhile;