UNPKG

telegram-mtproto

Version:
28 lines (24 loc) 583 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ᐸCoyonedaᐳlift = ᐸCoyonedaᐳlift; class Coyoneda { constructor(f, val) { this.f = f; this.val = val; } map(f) { return new Coyoneda(x => f(this.f(x)), this.val); } lower() { return this.val.map(this.f); } } exports.Coyoneda = Coyoneda; functionCoyonedalift(x) { return new Coyoneda(a => a, x); } // function Coyoneda(f, fa){ return new _Coyoneda(f, fa) } // Coyoneda.lift = function(x){ return Coyoneda(id, x) } //# sourceMappingURL=coyoneda.js.map