MCPcopy Index your code
hub / github.com/Effect-TS/effect / sequential

Function sequential

packages/effect/test/utils/cause.ts:20–24  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

18 const interrupt = fiberId.map(Cause.interrupt)
19
20 const sequential = (n: number): fc.Arbitrary<Cause.Cause<E>> => {
21 return fc.integer({ min: 1, max: n - 1 }).chain((i) =>
22 causesN(i).chain((left) => causesN(n - i).map((right) => Cause.sequential(left, right)))
23 )
24 }
25
26 const parallel = (n: number): fc.Arbitrary<Cause.Cause<E>> => {
27 return fc.integer({ min: 1, max: n - 1 }).chain((i) =>

Callers 1

causesNFunction · 0.70

Calls 3

causesNFunction · 0.85
integerMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected