// tracing: off
import { identity } from "../Function"
import { chain_ } from "./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.
 */

export function flatten(effect, __trace) {
  return chain_(effect, identity, __trace)
}
//# sourceMappingURL=flatten.js.map
