UNPKG

@typed/future

Version:
11 lines 455 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.chain = void 0; const either_1 = require("@typed/either"); const env_1 = require("@typed/env"); const lambda_1 = require("@typed/lambda"); exports.chain = lambda_1.curry(__chain); function __chain(fn, future) { return env_1.chain((either) => either_1.unpack((error) => env_1.Pure.of(either_1.Left.of(error)), fn, either), future); } //# sourceMappingURL=chain.js.map