"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flatten = void 0;
// ets_tracing: off
const Function_1 = require("../Function");
const core_1 = require("./core");
/**
 * Returns an effect that first executes the outer effect, and then executes
 * the inner effect, returning the value from the inner effect, and effectively
 * flattening a nested effect.
 */
function flatten(effect, __trace) {
    return (0, core_1.chain_)(effect, Function_1.identity, __trace);
}
exports.flatten = flatten;
//# sourceMappingURL=flatten.js.map