IStdlib.IOption
Like Option.value ~default:(f ())
but f
is called only if None
.
if_none_evalopt ~f x
evaluates to f ()
if x = None
, otherwise returns x
. Useful for chaining matchers where the first returning non-None
determines the result.
if_none_eval ~f x
evaluates to y
if x=Some y
else to f ()
. Useful for terminating chains built with if_none_evalopt
. This is exactly the same as value_default_f
but with a better name.
Like Option.exists
but gets two parameters.
Like Option.iter
but gets two parameters.
Like Option.map
but maintain physical equality
Like Option.bind
but keeps continuing the further evaluation with default
input when the first parameter is None
.
include sig ... end
module Let_syntax : sig ... end
Provides signatures for OCaml 4.08 binding operators