server-json/node_modules/ramda/es/internal/_xpromap.js
2024-11-01 08:00:42 +00:00

20 lines
No EOL
601 B
JavaScript

import _xfBase from "./_xfBase.js";
import _promap from "./_promap.js";
var XPromap = /*#__PURE__*/function () {
function XPromap(f, g, xf) {
this.xf = xf;
this.f = f;
this.g = g;
}
XPromap.prototype['@@transducer/init'] = _xfBase.init;
XPromap.prototype['@@transducer/result'] = _xfBase.result;
XPromap.prototype['@@transducer/step'] = function (result, input) {
return this.xf['@@transducer/step'](result, _promap(this.f, this.g, input));
};
return XPromap;
}();
export default function _xpromap(f, g) {
return function (xf) {
return new XPromap(f, g, xf);
};
}