Module Core_kernel__.Option

This module extends Base.Option with bin_io and quickcheck.

type 'a t = 'a Base.Option.t
include sig ... end
val bin_read_t : 'a Bin_prot.Read.reader ‑> 'a t Bin_prot.Read.reader
val __bin_read_t__ : 'a Bin_prot.Read.reader ‑> (int ‑> 'a t) Bin_prot.Read.reader
val bin_size_t : 'a Bin_prot.Size.sizer ‑> 'a t Bin_prot.Size.sizer
val bin_write_t : 'a Bin_prot.Write.writer ‑> 'a t Bin_prot.Write.writer
val bin_shape_t : Bin_prot.Shape.t ‑> Bin_prot.Shape.t
include module type of sig ... end with type t := a t
type 'a t = 'a option
val compare : ('a ‑> 'a ‑> int) ‑> 'a t ‑> 'a t ‑> int
val hash_fold_t : (Base.Hash.state ‑> 'a ‑> Base.Hash.state) ‑> Base.Hash.state ‑> 'a t ‑> Base.Hash.state
val t_of_sexp : (Base.Sexp.t ‑> 'a) ‑> Base.Sexp.t ‑> 'a t
val sexp_of_t : ('a ‑> Base.Sexp.t) ‑> 'a t ‑> Base.Sexp.t
val mem : 'a t ‑> 'a ‑> equal:('a ‑> 'a ‑> bool) ‑> 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 fold_result : 'a t ‑> init:'accum ‑> f:('accum ‑> 'a ‑> ('accum'eBase.Result.t) ‑> ('accum'eBase.Result.t
val fold_until : 'a t ‑> init:'accum ‑> f:('accum ‑> 'a ‑> ('accum'stopBase.Container_intf.Continue_or_stop.t) ‑> ('accum'stopBase.Container_intf.Finished_or_stopped_early.t
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 Base.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 equal : 'a Base.Equal.equal ‑> 'a t Base.Equal.equal
val (>>=) : 'a t ‑> ('a ‑> 'b t) ‑> 'b t
val (>>|) : 'a t ‑> ('a ‑> 'b) ‑> 'b t
val bind : 'a t ‑> f:('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 t ‑> bool
val is_some : 'a t ‑> bool
val value_map : 'a t ‑> default:'b ‑> f:('a ‑> 'b) ‑> 'b
val map2 : 'a t ‑> 'b t ‑> f:('a ‑> 'b ‑> 'c) ‑> 'c t
val call : 'a ‑> f:('a ‑> unit) t ‑> unit
val value : 'a t ‑> default:'a ‑> 'a
val value_exn : ?⁠here:Base__.Source_code_position0.t ‑> ?⁠error:Base.Error.t ‑> ?⁠message:string ‑> 'a t ‑> 'a
val some : 'a ‑> 'a t
val both : 'a t ‑> 'b t ‑> ('a * 'b) t
val first_some : 'a t ‑> 'a t ‑> 'a t
val some_if : bool ‑> 'a ‑> 'a t
val merge : 'a t ‑> 'a t ‑> f:('a ‑> 'a ‑> 'a) ‑> 'a t
val filter : 'a t ‑> f:('a ‑> bool) ‑> 'a t
val try_with : (unit ‑> 'a) ‑> 'a t
val validate : none:unit Base.Validate.check ‑> some:'a Base.Validate.check ‑> 'a t Base.Validate.check
include Core_kernel.Comparator.Derived with type t := a t
type 'a t
type 'cmp comparator_witness
include Core_kernel.Quickcheckable.S1 with type t := a t
type 'a gen
type 'a obs
type 'a shr
type 'a t
val gen : 'a gen ‑> 'a t gen
val obs : 'a obs ‑> 'a t obs
val shrinker : 'a shr ‑> 'a t shr