Efficient Mapping and Logging with Effect.allMap

Is there an easy way to something like this:
Effect.allMap({
    a: Effect.sync(() => 1),
    b: Effect.sync(() => 3),
}).pipe(
    Effect.andThen((result) => console.log(result))
    // Outputs: { a: 1, b: 3 }
)
Was this page helpful?