mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
22 lines
640 B
TypeScript
22 lines
640 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_xpromap.js
|
|
|
|
|
|
import _curry3 from './_curry3.js';
|
|
import _xfBase from './_xfBase.js';
|
|
import _promap from './_promap.js';
|
|
|
|
|
|
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));
|
|
};
|
|
|
|
var _xpromap = _curry3(function _xpromap(f, g, xf) { return new XPromap(f, g, xf); });
|
|
export default _xpromap;
|