const fileName_1 = "(@effect/core) _src/stream/Sink/operations/collectAllToSet.ts";
import * as tsplus_module_1 from "@tsplus/stdlib/collections/HashSet/empty";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/HashSet/add";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/Chunk/reduce";
import * as tsplus_module_4 from "@effect/core/stream/Sink/operations/foldLeftChunks";
/**
 * A sink that collects all of its inputs into a set.
 *
 * @tsplus static ets/Sink/Ops collectAllToSet
 */

export function collectAllToSet() {
  return tsplus_module_4.foldLeftChunks(() => tsplus_module_1.empty(), (acc, c) => tsplus_module_3.reduce_(c, acc, (set, a) => tsplus_module_2.add_(set, a)), fileName_1 + ":7:29");
}
//# sourceMappingURL=collectAllToSet.mjs.map