mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-16 15:56:05 -05:00
[CCResult] add doc for map_l
This commit is contained in:
parent
f8d9e33900
commit
363c3b4528
1 changed files with 3 additions and 0 deletions
|
|
@ -188,6 +188,9 @@ end
|
|||
(** {2 Collections} *)
|
||||
|
||||
val map_l : ('a -> ('b, 'err) t) -> 'a list -> ('b list, 'err) t
|
||||
(** [map_l f l] apply [f] on every element of [l], and, in case of success for every
|
||||
element, return [Ok (List.map f l)]. Otherwise, it fails, and the first error is
|
||||
return.*)
|
||||
|
||||
val fold_l : ('b -> 'a -> ('b, 'err) t) -> 'b -> 'a list -> ('b, 'err) t
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue