Hello!
I’m having a hard time figuring out “the effect way” to do this.
I was thinking a function x => Effect.succeed(x + 1) could be called with an initial value like reduce but the only APIs I’ve found that accept a Schedule as input appear to require an Effect that is run each time (no input arguments).
Is the usual way to declare the initial value as a variable, close over it and mutate it? Should I use a Ref? Something else entirely?