You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I desperately want to write in a nice syntax something like this:
foo <|> bar
But Alternative instance for IO doesn't work that way... We can introduce a new operator, like, lazy monadic alternative with the following type and semantics:
If the first Trial is Result then don't perform second action, otherwise perform second and use <|> (or <>, depending on Change Alternative instance #50) on both values.
The proposed type:
What should be the name?
trials
tryUntil
firstResult
...The text was updated successfully, but these errors were encountered: