F# Matching Options


Example

Pattern matching can be useful to handle Options:

let result = Some("Hello World")
match result with
| Some(message) -> printfn message
| None -> printfn "Not feeling talkative huh?"