None
represented null
in CLR. You can see this while experimenting with FSI:
> [Some 3; None];;
val it : int option list = [Some 3; null]
It still works though ::
> [Some 3; None] |> List.choose id;;
val it : int list = [3]
So, [null; Some 3; Some 4; null]
coincides with [None; Some 3; Some 4; None]
:
> a = [None; Some 3; Some 4; None];;
val it : bool = true
where a
is the value from the OP.
source
share