import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/definition";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/map";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/unchunks";
/**
 * Submerges the Collections carried by this stream into the stream's structure,
 * while still preserving them.
 *
 * @tsplus fluent ets/Stream flattenCollection
 */

export function flattenCollection(self, __tsplusTrace) {
  return tsplus_module_3.unchunks(tsplus_module_2.map_(self, a => tsplus_module_1.from(a), __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=flattenCollection.mjs.map