Skip to content
Snippets Groups Projects
Commit c05bbbf5 authored by Thibault Martin's avatar Thibault Martin
Browse files

[doc] Specify which error is kept if both arguments are (Error e)

parent 0ecad646
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
include module type of Stdlib.Result include module type of Stdlib.Result
(** [zip r1 r2] regroups values in a pair [Ok (v1, v2)] if both arguments are
[Ok v1] and [Ok v2] and propagate errors in other cases. If both [r1]
and [r2] are errors we keep the first one, in this case [r1]. *)
val zip : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result val zip : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result
module Operators : sig module Operators : sig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment