mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 19:25:28 -05:00
doc
This commit is contained in:
parent
3e769750b6
commit
dccb1499f4
1 changed files with 4 additions and 0 deletions
|
|
@ -113,8 +113,12 @@ val wrap3 : ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'c -> ('d, exn) t
|
|||
(** {2 Applicative} *)
|
||||
|
||||
val pure : 'a -> ('a, 'err) t
|
||||
(** Synonym of {!return} *)
|
||||
|
||||
val (<*>) : ('a -> 'b, 'err) t -> ('a, 'err) t -> ('b, 'err) t
|
||||
(** [a <*> b] evaluates [a] and [b], and, in case of success, returns
|
||||
[`Ok (a b)]. Otherwise, it fails, and the error of [a] is chosen
|
||||
over the error of [b] if both fail *)
|
||||
|
||||
(** {2 Collections} *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue