From 23d7ea20f617f150823e2e4d3d2e73b8c046466d Mon Sep 17 00:00:00 2001 From: Fardale <33528128+FardaleM@users.noreply.github.com> Date: Fri, 21 Dec 2018 16:43:36 +0100 Subject: [PATCH] [WIP] Work on documentation (#242) `CCResult` add doc for map_l --- src/core/CCResult.mli | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/CCResult.mli b/src/core/CCResult.mli index a5b47bb6..ffd67510 100644 --- a/src/core/CCResult.mli +++ b/src/core/CCResult.mli @@ -188,6 +188,9 @@ end (** {2 Collections} *) val map_l : ('a -> ('b, 'err) t) -> 'a list -> ('b list, 'err) t +(** [map_l f \[a1; ...; an\]] applies function f to a1, ..., an , and, in case of + success for every elements, return the list of [Ok]-value. + Otherwise, it fails and return the first error encountered. Tail-recursive.*) val fold_l : ('b -> 'a -> ('b, 'err) t) -> 'b -> 'a list -> ('b, 'err) t