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
public class Maybe {
public Single switchIfEmpty(Single single);
}
Semantically, if you switchIfEmpty to a Single from a Maybe, then it becomes a Single, as you are guaranteed either an error or a value. It would just make it less verbose than doing this:
maybe.switchIfEmpty(single.toMaybe()).toSingle()
The text was updated successfully, but these errors were encountered:
It would be nice to see a method like this:
public class Maybe {
public Single switchIfEmpty(Single single);
}
Semantically, if you switchIfEmpty to a Single from a Maybe, then it becomes a Single, as you are guaranteed either an error or a value. It would just make it less verbose than doing this:
maybe.switchIfEmpty(single.toMaybe()).toSingle()
The text was updated successfully, but these errors were encountered: