`sig
type 'a t = 'a option
val typerep_of_t :
'a Typerep_lib.Std.Typerep.t -> 'a Option.t Typerep_lib.Std.Typerep.t
val typename_of_t :
'a Typerep_lib.Std.Typename.t -> 'a Option.t Typerep_lib.Std.Typename.t
val mem : ?equal:('a -> 'a -> bool) -> 'a t -> 'a -> bool
val length : 'a t -> int
val is_empty : 'a t -> bool
val iter : 'a t -> f:('a -> unit) -> unit
val fold : 'a t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum
val exists : 'a t -> f:('a -> bool) -> bool
val for_all : 'a t -> f:('a -> bool) -> bool
val count : 'a t -> f:('a -> bool) -> int
val sum :
(module Commutative_group.S with type t = 'sum) ->
'a t -> f:('a -> 'sum) -> 'sum
val find : 'a t -> f:('a -> bool) -> 'a option
val find_map : 'a t -> f:('a -> 'b option) -> 'b option
val to_list : 'a t -> 'a list
val to_array : 'a t -> 'a array
val min_elt : 'a t -> cmp:('a -> 'a -> int) -> 'a option
val max_elt : 'a t -> cmp:('a -> 'a -> int) -> 'a option
val invariant : 'a Invariant_intf.inv -> 'a t Invariant_intf.inv
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
module Monad_infix :
sig
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
end
val bind : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
val map : 'a t -> f:('a -> 'b) -> 'b t
val join : 'a t t -> 'a t
val ignore_m : 'a t -> unit t
val all : 'a t list -> 'a list t
val all_ignore : unit t list -> unit t
val is_none : 'a Option.t -> bool
val is_some : 'a Option.t -> bool
val value_map : 'a Option.t -> default:'b -> f:('a -> 'b) -> 'b
val map2 : 'a Option.t -> 'b Option.t -> f:('a -> 'b -> 'c) -> 'c Option.t
val call : 'a -> f:('a -> unit) Option.t -> unit
val value : 'a Option.t -> default:'a -> 'a
val value_exn :
?here:Source_code_position0.t ->
?error:Error.t -> ?message:string -> 'a Option.t -> 'a
val some : 'a -> 'a Option.t
val both : 'a Option.t -> 'b Option.t -> ('a * 'b) Option.t
val first_some : 'a Option.t -> 'a Option.t -> 'a Option.t
val some_if : bool -> 'a -> 'a Option.t
val merge : 'a Option.t -> 'a Option.t -> f:('a -> 'a -> 'a) -> 'a Option.t
val filter : 'a Option.t -> f:('a -> bool) -> 'a Option.t
val try_with : (unit -> 'a) -> 'a Option.t
val compare : cmp:('a -> 'a -> int) -> 'a Option.t -> 'a Option.t -> int
val equal : ('a -> 'a -> bool) -> 'a Option.t -> 'a Option.t -> bool
val validate :
none:unit Validate.check ->
some:'a Validate.check -> 'a Option.t Validate.check
val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a Option.t
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a Option.t -> Sexplib.Sexp.t
val bin_t : 'a Bin_prot.Type_class.t -> 'a Option.t Bin_prot.Type_class.t
val bin_read_t :
'a Bin_prot.Read.reader -> 'a Option.t Bin_prot.Read.reader
val __bin_read_t__ :
'a Bin_prot.Read.reader -> (int -> 'a Option.t) Bin_prot.Read.reader
val bin_reader_t :
'a Bin_prot.Type_class.reader -> 'a Option.t Bin_prot.Type_class.reader
val bin_size_t : 'a Bin_prot.Size.sizer -> 'a Option.t Bin_prot.Size.sizer
val bin_write_t :
'a Bin_prot.Write.writer -> 'a Option.t Bin_prot.Write.writer
val bin_writer_t :
'a Bin_prot.Type_class.writer -> 'a Option.t Bin_prot.Type_class.writer
end`