Using Effect.iterate for Type Narrowing
Good morning. I am using Effect.iterate and was wondering if there was an elegant way to get type narrowing from the while condition into the body part. While thinking about it, I thought maybe an extra signature with of Effect.iterate with a refinement instead of a predicate could help, like
What would be your thoughts about this?
What would be your thoughts about this?
