MCPcopy
hub / github.com/Effect-TS/effect / f

Function f

packages/effect/test/Stream/mapping.test.ts:21–21  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

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)))

Callers 1

mapping.test.tsFile · 0.70

Calls 1

ofMethod · 0.65

Tested by

no test coverage detected