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
@jasondelaat, thank you for this fantastically useful, yet unbloated, library!
I would like to see this for Either as well, but perhaps instead of defining new methods, the Maybe.maybe and Either.either methods can simply be modified (since they appear to simply be or_else named differently) such that the identity function is the default value for the second argument to those methods, since that is arguably the most common use case, and having to repeat lambda x: x (or identity, if that is defined somewhere) is tiresome and unnecessarily verbose.
Hi,
could you please add
or_else
to the Maybe monad?The text was updated successfully, but these errors were encountered: