module Result: BatResulttype('a, 'b)t =('a, 'b) BatStd.result
val catch : ('a -> 'b) -> 'a -> ('b, exn) BatStd.result!resultval of_option : 'a option -> ('a, unit) BatStd.resultoption to a resultval to_option : ('a, 'b) BatStd.result -> 'a optionresult to an optionval bind : ('a, 'b) BatStd.result ->
('a -> ('c, 'b) BatStd.result) -> ('c, 'b) BatStd.result
bind r f proceeds as f x if r is Ok x, or returns r if
r is an error.
val (>>=) : ('a, 'b) BatStd.result ->
('a -> ('c, 'b) BatStd.result) -> ('c, 'b) BatStd.resultbind