import * as tsplus_module_1 from "@tsplus/stdlib/data/Function";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/flatMap";
/**
 * Returns a new channel, which flattens the terminal value of this channel.
 * This function may only be called if the terminal value of this channel is
 * another channel of compatible types.
 *
 * @tsplus getter ets/Channel flatten
 */

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