Kxclib.Optioninclude module type of Stdlib.Optionmodule Ops : sig ... endval get : 'a t -> 'aval v : 'a -> 'a t -> 'aval v' : (unit -> 'a) -> 'a t -> 'aval or_raise : exn -> 'a t -> 'aval pp :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a t ->
unitval of_bool : bool -> unit tval some_if : bool -> 'a -> 'a tprotect ~capture f x returns Some (f x) except when
f x throws an exn s.t. capture exn = true, it returns Nonef x throws an exn s.t. capture exn = false, it rethrows exn~capture defaults to fun _exn -> true
try_make ~capture f is protect ~capture f (), thus see protect
~capture defaults to fun _exn -> true