Clarification on using `yield* E.succeed(<value>)` vs `return value` in Effect TypeScript

Why does this example use return yield* E.succeed(<value>) instead of return value? Isn't that a no-op?
https://effect.website/docs/getting-started/using-generators/#passing-this
Effect Documentation
Learn how to use generators in Effect for writing effectful code, enhancing control flow, handling errors, and simplifying asynchronous operations with a syntax similar to async/await.
Using Generators
Was this page helpful?