Util_pure.Result
type 'a rt = 'a rresult
val decorate_error_s : decorate_s -> ('a, string) t -> ('a, string) t
val rdecorate_error : decorate_s -> 'a rresult -> 'a rresult
val map_s :
decorate_error:decorate_s ->
('a -> 'b) ->
('a, string) t ->
('b, string) t
val rmap : ?decorate_error:decorate_s -> ('a -> 'b) -> 'a rt -> 'b rt
val fold : ('a -> 'c) -> ('b -> 'c) -> ('a, 'b) t -> 'c
Given a list of functions rs
where r : unit -> ('a, 'b) t
, find the first one which returns Ok result
. If found, return Some result
, otherwise None
.
Given a list of functions rs
where r : unit -> ('a, 'b) t
, find the first one which returns Ok result
. If found, return Some result
, otherwise None
.
Like list_find_f_ok
, but on failure it returns Error of 'b list
, which has the same length as rs
and contains the Error
values that were encountered during the attempt.
Like list_find_f_ok
, but on failure it returns Error of 'b list
, which has the same length as rs
and contains the Error
values that were encountered during the attempt.
module Infix : sig ... end
A combination of Infix and Let (for let* etc.)
module Letsfix : sig ... end
A combination of Infix and Let (for let* etc.)