Seeking a Sequential `Effect.all` That Returns the Final Result

Is there something similar to Effect.all in sequential mode, but that returns the final result. Ie. it would behave like the following

const program = Effect.all([
  effectA,
  effectB,
  effectC,
]).pipe(
  Effect.map(([_0, _1, c]) => c),
)


Could also be expressed like so:

const program = pipe(
  effectA,
  Effect.andThen(effectB),
  Effect.andThen(effectC),
)


But what I'm hoping for is something like this hypothetical final:

const program = final(
  effectA,
  effectB,
  effectC,
)
Was this page helpful?