How does one pass argument values to Effect.gen?
In a pipeline I can initiate that pipe with some initial input value. How would I do the equivalent with a generator flow? All the examples in the docs (https://effect.website/docs/getting-started/using-generators/) have hard-coded input values. What would be an example of passing in a variable? For example, in the docs we have this:
As you can see, here the transaction amount is hard-coded. What if I wanted to be able to pass in that value as a variable? Btw, this all feels very basic so I am wondering if there is something fundamental I am missing here. Thanks for any insights!
As you can see, here the transaction amount is hard-coded. What if I wanted to be able to pass in that value as a variable? Btw, this all feels very basic so I am wondering if there is something fundamental I am missing here. Thanks for any insights!
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.

