@typed/future
Version:
Asynchronous Future Values
11 lines • 361 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ap = void 0;
const lambda_1 = require("@typed/lambda");
const chain_1 = require("./chain");
const map_1 = require("./map");
exports.ap = lambda_1.curry(__ap);
function __ap(fn, value) {
return chain_1.chain((f) => map_1.map(f, value), fn);
}
//# sourceMappingURL=ap.js.map
;