// ets_tracing: off import { identity } from "../Function/index.js" import { chain_ } from "./core.js" import type { Effect } from "./effect.js" /** * 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. */ export function flatten( effect: Effect>, __trace?: string ) { return chain_(effect, identity, __trace) }