mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
doc: fix small inaccuracy in comments and API
This commit is contained in:
parent
b7e8dcb5ff
commit
1d3ba3a6f1
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ val filter : ('a -> bool) -> 'a t -> 'a t
|
|||
val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
|
||||
(** Safe version of [fold_right].
|
||||
[fold_right f [a1; ...; an] b] is
|
||||
[f a1 (f a2 (... (f an b) ...))]. Not tail-recursive. *)
|
||||
[f a1 (f a2 (... (f an b) ...))]. *)
|
||||
|
||||
val fold_while : ('a -> 'b -> 'a * [`Stop | `Continue]) -> 'a -> 'b t -> 'a
|
||||
(** Fold until a stop condition via [('a, `Stop)] is
|
||||
|
|
|
|||
|
|
@ -50,10 +50,10 @@ val filter : f:('a -> bool) -> 'a t -> 'a t
|
|||
that satisfy the predicate [p]. The order of the elements
|
||||
in the input list is preserved. *)
|
||||
|
||||
val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
|
||||
val fold_right : f:('a -> 'b -> 'b) -> 'a t -> init:'b -> 'b
|
||||
(** Safe version of [fold_right].
|
||||
[fold_right f [a1; ...; an] b] is
|
||||
[f a1 (f a2 (... (f an b) ...))]. Not tail-recursive. *)
|
||||
[f a1 (f a2 (... (f an b) ...))]. *)
|
||||
|
||||
val fold_while : f:('a -> 'b -> 'a * [`Stop | `Continue]) -> init:'a -> 'b t -> 'a
|
||||
(** Fold until a stop condition via [('a, `Stop)] is
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue