include module type of struct include Stdlib.Option end
type !'a t = 'a option = | None| Some of 'a
val some : 'a -> 'a optionval value : 'a option -> default:'a -> 'aval get : 'a option -> 'aval bind : 'a option -> ('a -> 'b option) -> 'b optionval join : 'a option option -> 'a optionval map : ('a -> 'b) -> 'a option -> 'b optionval fold : none:'a -> some:('b -> 'a) -> 'b option -> 'aval iter : ('a -> unit) -> 'a option -> unitval is_none : 'a option -> boolval is_some : 'a option -> boolval equal : ('a -> 'a -> bool) -> 'a option -> 'a option -> boolval compare : ('a -> 'a -> int) -> 'a option -> 'a option -> intval to_result : none:'e -> 'a option -> ('a, 'e) Stdlib.resultval to_list : 'a option -> 'a listval to_seq : 'a option -> 'a Stdlib.Seq.tval (>>=) : 'a option -> ('a -> 'b option) -> 'b optionval (>>|) : 'a option -> ('a -> 'b) -> 'b optionval unopt : default:'a -> 'b t -> 'cval unopt_map : f:('a -> 'b) -> default:'c -> 'd t -> 'eval unopt_exn : exn -> 'a t -> 'bval unopt_assert : loc:(string * int * int * 'a) -> 'b t -> 'cval first_some : 'a t -> 'a t -> 'a tval pp :
?default:string ->
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'b t ->
unit