KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How could nested pattern matching, such as the following example, be re-written so that None is specified only once? I think the Maybe monad solves this problem. Is there something similar in the F# core library? Or, is there an alternative approach? match a with | Some b -> let c = b.SomeProperty match c with | Some d -> let e = d.SomeProperty //and so on... | None -> () | None -> ()
Tags (comma-separated)
Save Edits
Cancel