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
Currently, the way Either is implement, there is no way to unwrap it while handling the left value other than a raw case statement. There's no way to fold both the left and right into a single value because the foldable instances are:
Currently, the way Either is implement, there is no way to unwrap it while handling the left value other than a raw case statement. There's no way to fold both the left and right into a single value because the foldable instances are:
Ideally we'd implement bifoldable in Witchcraft to allow:
In the meantime, just making Either a comonad and have it raise when your extract a left will be very helpful.
The text was updated successfully, but these errors were encountered: