Frama_c_kernel.OptionExtension of OCaml's Stdlib.Option module. Be wary that the parameters order of the bind function are reversed compared to the standard library and that get takes an optional exn argument. @see https://frama-c.com/download/frama-c-plugin-development-guide.pdf
include Monad.S_with_product with type 'a t = 'a optionmodule Operators : sig ... endinclude module type of Stdlib.Optionmodule Make_monadic_iterators
(M : Monad.S) :
Monad.Iterators
with type 'a iterable := 'a option
and type 'a monad := 'a M.tMake iterators to handle options of monadic elements and monadic options.
val (<?) : 'a t -> 'a -> 'aThe call opt <? default is equivalent to value ~default opt.
Reverse Stdlib.Option.bind parameters for monad compatibility. bind f o is f v if o is Some v and None if o is None.
value_or_else ~none o is similar to value but uses a function to compute the default value.
Compute a hash for the option given a hash for the element.
Same as Stdlib.Option.map but avoid creating a copy of the option if the mapped function returns its argument (tested through physical equality).