(n: number)
| 19 | Effect.gen(function*() { |
| 20 | const stream = Stream.make(1, 2, 3, 4, 5) |
| 21 | const f = (n: number) => n * 2 |
| 22 | const { result1, result2 } = yield* (Effect.all({ |
| 23 | result1: pipe(stream, Stream.map(f), Stream.runCollect), |
| 24 | result2: pipe(Stream.runCollect(stream), Effect.map(Chunk.map(f))) |