UNPKG

@typed/future

Version:
11 lines 383 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.map = void 0; const lambda_1 = require("@typed/lambda"); const chain_1 = require("./chain"); const Future_1 = require("./Future"); exports.map = lambda_1.curry(__map); function __map(fn, future) { return chain_1.chain((b) => Future_1.Future.of(fn(b)), future); } //# sourceMappingURL=map.js.map