import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/empty";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/concat";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/Chunk/reduce";
import * as tsplus_module_4 from "@effect/core/stream/Stream/operations/suspend";
/**
 * Concatenates all of the streams in the chunk to one stream.
 *
 * @tsplus static ets/Stream/Ops concatAll
 */

export function concatAll(streams, __tsplusTrace) {
  return tsplus_module_4.suspend(() => tsplus_module_3.reduce_(streams(), tsplus_module_1.empty, (acc, a) => tsplus_module_2.concat_(acc, () => a, __tsplusTrace)), __tsplusTrace);
}
//# sourceMappingURL=concatAll.mjs.map