import { concreteGroupBy } from "@effect/core/stream/GroupBy/operations/_internal/GroupByInternal" /** * Run the function across all groups, collecting the results in an * arbitrary order. * * @tsplus static effect/core/stream/GroupBy.Aspects mergeGroupBy * @tsplus pipeable effect/core/stream/GroupBy mergeGroupBy */ export function mergeGroupBy( f: (k: K, stream: Stream) => Stream ) { return (self: GroupBy): Stream => { concreteGroupBy(self) return self.apply(f) } }