/** * Repeatedly runs the generator and collects the specified number of values * in a chunk. * * @tsplus static effect/core/testing/Gen.Aspects runCollectN * @tsplus pipeable effect/core/testing/Gen runCollectN */ export function runCollectN(n: number) { return (self: Gen): Effect> => self.sample .collectSome .map((sample) => sample.value) .forever .take(n) .runCollect }