KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Suppose I have two Options and, if both are Some, execute one code path, and if note, execute another. I'd like to do something like for (x <- xMaybe; y <- yMaybe) { // do something } else { // either x or y were None, handle this } Outside of if statements or pattern matching (which might not scale if I had more than two options), is there a better way of handling this?
Tags (comma-separated)
Save Edits
Cancel