KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the right way to use Nullable in F#? Currently I'm using this, but it seems awefully messy. let test (left : Nullable<int>) = if left.HasValue then left.Value else 0 Console.WriteLine(test (new System.Nullable<int>())) Console.WriteLine(test (new Nullable<int>(100))) let x = 100 Console.WriteLine(test (new Nullable<int>(x)))
Tags (comma-separated)
Save Edits
Cancel