5 type option 'a = None | Some 'a
7 let predicate is_none (o: option 'a)
8 ensures { result <-> o = None }
9 = match o with None -> true | Some _ -> false end
17 function map (f: 'a -> 'b) (o: option 'a) : option 'b
18 = match o with None -> None | Some x -> Some (f x) end