Module IStdlib.IOption
val find_value_exn : 'a option -> 'aLike
Option.value_exnbut raisesCaml.Not_foundwhen called withNone.
val value_default_f : f:(unit -> 'a) -> 'a option -> 'aLike
Option.value ~default:(f ())butfis called only ifNone.
val if_none_evalopt : f:(unit -> 'a option) -> 'a option -> 'a optionif_none_evalopt ~f xevaluates tof ()ifx = None, otherwise returnsx. Useful for chaining matchers where the first returning non-Nonedetermines the result.
val if_none_eval : f:(unit -> 'a) -> 'a option -> 'aif_none_eval ~f xevaluates toyifx=Some yelse tof (). Useful for terminating chains built withif_none_evalopt. This is exactly the same asvalue_default_fbut with a better name.
val exists2 : 'a option -> 'b option -> f:('a -> 'b -> bool) -> boolLike
Option.existsbut gets two parameters.
include sig ... end
module Let_syntax : sig ... endProvides signatures for OCaml 4.08 binding operators