Module IStdlib__IOption
- val find_value_exn : 'a option -> 'a
- Like - Option.value_exnbut raises- Caml.Not_foundwhen called with- None.
- val value_default_f : f:(unit -> 'a) -> 'a option -> 'a
- Like - Option.value ~default:(f ())but- fis called only if- None.
- val if_none_evalopt : f:(unit -> 'a option) -> 'a option -> 'a option
- if_none_evalopt ~f xevaluates to- f ()if- x = None, otherwise returns- x. Useful for chaining matchers where the first returning non-- Nonedetermines the result.
- val if_none_eval : f:(unit -> 'a) -> 'a option -> 'a
- if_none_eval ~f xevaluates to- yif- x=Some yelse to- f (). Useful for terminating chains built with- if_none_evalopt. This is exactly the same as- value_default_fbut with a better name.
- val exists2 : 'a option -> 'b option -> f:('a -> 'b -> bool) -> bool
- Like - Option.existsbut gets two parameters.
- val map_changed : 'a option -> equal:('a -> 'a -> bool) -> f:('a -> 'a) -> 'a option
- Like - Option.mapbut maintain physical equality
include sig ... end
- module Let_syntax : sig ... end
- Provides signatures for OCaml 4.08 binding operators