Best way to combine multiple Effects into a single Effect

What is the best way to fold Effect together ? example: [Effect.succeed(1), Effect.succed(2)] === Effect.succed(3)
- Effect.all and then sum the list
- Effect.reduceEffect
- other ?

I would like to pass a function that doesn't know effect, in this case: (a, b) => a + b
Was this page helpful?