I\'m unexpectedly having a bit of trouble with going from a list of \'a option down to a list containing only the elements that are Some.
My initial attempt was:
Simply
List.choose id
as in
> [Some 4; None; Some 2; None] |> List.choose id;; val it : int list = [4; 2]
List.choose
id