mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
Merge pull request #11 from hcarty/patch-1
CCError.map2 could map to a new error type
This commit is contained in:
commit
54d16494b0
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ val map_err : ('err1 -> 'err2) -> ('a, 'err1) t -> ('a, 'err2) t
|
||||||
(** Map on error.
|
(** Map on error.
|
||||||
@since 0.5 *)
|
@since 0.5 *)
|
||||||
|
|
||||||
val map2 : ('a -> 'b) -> ('err -> 'err) -> ('a, 'err) t -> ('b, 'err) t
|
val map2 : ('a -> 'b) -> ('err1 -> 'err2) -> ('a, 'err1) t -> ('b, 'err2) t
|
||||||
(** Same as {!map}, but also with a function that can transform
|
(** Same as {!map}, but also with a function that can transform
|
||||||
the error message in case of failure *)
|
the error message in case of failure *)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue