import * as tsplus_module_1 from "@tsplus/stdlib/data/Function";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/flatMap";
/**
 * Flattens out a nested `STM` effect.
 *
 * @tsplus static ets/STM/Ops flatten
 * @tsplus getter ets/STM flatten
 */

export function flatten(self) {
  return tsplus_module_2.flatMap_(self, tsplus_module_1.identity);
}
//# sourceMappingURL=flatten.mjs.map