/** * A sink that collects all of its inputs into a set. * * @tsplus static effect/core/stream/Sink.Ops collectAllToSet */ export function collectAllToSet(): Sink> { return Sink.foldLeftChunks(HashSet.empty(), (acc, c) => c.reduce(acc, (set, a) => set.add(a))) }