Module Kwdeprecated.Result

module Result: sig .. end

type ('a, 'b) result = 
| Ok of 'a
| Error of 'b
The type of results.
val maybe : ('a -> 'b) -> 'a -> ('b, exn) result
maybe f x: evaluate f x, returning Failure exn if exception exn was raised during evaluation, and Success (f x) otherwise.
f : some function to apply to x
x : some value