Chain effects with .pipe and Effect.map
Effects can be transformed and chained together using `.pipe()` and methods like `Effect.map`.
Transform an Effect that succeeds with the number 5 into an Effect that succeeds with the string "The result is 10" (multiply by 2, then format as a string).
- Use `.pipe()` to chain transformations
- Use `Effect.map(fn)` to transform the success value
- You can chain multiple `Effect.map` calls
Loading code editor...