// ets_tracing: off
import * as CK from "../../../Collections/Immutable/Chunk";
import * as HS from "../../../Collections/Immutable/HashSet";
import * as FoldLeftChunks from "./foldLeftChunks";
/**
 * A sink that collects all of its inputs into a set.
 */

export function collectAllToSet() {
  return FoldLeftChunks.foldLeftChunks(HS.make(), (acc, as) => CK.reduce_(as, acc, (s, a) => HS.add_(s, a)));
}
//# sourceMappingURL=collectAllToSet.js.map