@typed/lenses
Version:
Strongly-typed functional lenses
9 lines • 329 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pipe2 = void 0;
const Lens_1 = require("./Lens");
function pipe2(ab, bc) {
return Lens_1.Lens.create((a) => bc.get(ab.get(a)), (c, a) => ab.update((b) => bc.update(() => c, b), a));
}
exports.pipe2 = pipe2;
//# sourceMappingURL=pipe2.js.map