Files
infocom-systems-design/node_modules/ramda/es/internal/_xwrap.js
2025-10-03 22:27:28 +03:00

25 lines
460 B
JavaScript
Executable File

var XWrap =
/*#__PURE__*/
function () {
function XWrap(fn) {
this.f = fn;
}
XWrap.prototype['@@transducer/init'] = function () {
throw new Error('init not implemented on XWrap');
};
XWrap.prototype['@@transducer/result'] = function (acc) {
return acc;
};
XWrap.prototype['@@transducer/step'] = function (acc, x) {
return this.f(acc, x);
};
return XWrap;
}();
export default function _xwrap(fn) {
return new XWrap(fn);
}