UNPKG

@typed/future

Version:
11 lines 361 B
"use strict"; 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