Using the Option Module in F#
compositional-it.com
compositional-it.com
On the other hand, in functional programming, null values are not typically utilized. Thanks to immutability, we can rely on values to always contain something. In cases where null values are expected at the boundaries of our system or when we anticipate the absence of a value, we have effective mechanisms to handle such situations.
The secret weapon F# uses for dealing with null value is the option type which is basically a Discriminated Union:"