Innovenergy_trunk/frontend/node_modules/fp-ts/lib/Chain.js

15 lines
592 B
JavaScript
Raw Permalink Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bind = exports.chainFirst = void 0;
function chainFirst(M) {
return function (f) { return function (first) { return M.chain(first, function (a) { return M.map(f(a), function () { return a; }); }); }; };
}
exports.chainFirst = chainFirst;
function bind(M) {
return function (name, f) { return function (ma) { return M.chain(ma, function (a) { return M.map(f(a), function (b) {
var _a;
return Object.assign({}, a, (_a = {}, _a[name] = b, _a));
}); }); }; };
}
exports.bind = bind;