sig
type 'a t = 'a option
val may : ('a -> unit) -> 'a option -> unit
val map : ('a -> 'b) -> 'a option -> 'b option
val bind : ('a -> 'b option) -> 'a option -> 'b option
val default : 'a -> 'a option -> 'a
val map_default : ('a -> 'b) -> 'b -> 'a option -> 'b
val is_none : 'a option -> bool
val is_some : 'a option -> bool
val get : 'a option -> 'a
val get_exn : 'a option -> exn -> 'a
val enum : 'a option -> 'a BatEnum.t
val of_enum : 'a BatEnum.t -> 'a option
exception No_value
module Monad :
sig
type 'a m = 'a option
val return : 'a -> 'a BatOption.Monad.m
val bind :
'a BatOption.Monad.m ->
('a -> 'b BatOption.Monad.m) -> 'b BatOption.Monad.m
end
val print :
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output -> 'b BatOption.t -> unit
val t_printer : 'a BatValue_printer.t -> 'a BatOption.t BatValue_printer.t
val maybe_printer :
'a BatValue_printer.t -> 'a BatOption.t BatValue_printer.t
module Labels :
sig
val may : f:('a -> unit) -> 'a option -> unit
val map : f:('a -> 'b) -> 'a option -> 'b option
val map_default : f:('a -> 'b) -> 'b -> 'a option -> 'b
end
end