prepare for 1.4

This commit is contained in:
Simon Cruanes 2022-02-22 11:04:45 -05:00
parent 8be2428829
commit 65ab9376b0
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,9 @@
# 1.4
- fix dune files for dune 3
- add `for_each` and `for_eachi`
# 1.3
- use `inline` annotations

View file

@ -1,6 +1,6 @@
opam-version: "2.0"
name: "iter"
version: "1.3"
version: "1.4"
authors: ["Simon Cruanes" "Gabriel Radanne"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-clause"

View file

@ -124,13 +124,13 @@ val for_each : 'a t -> ('a -> unit) -> unit
(** Consume the iterator, passing all its arguments to the function.
[for_each seq f] is the same as [iter f seq], i.e., [iter] with
arguments reversed.
@since NEXT_RELEASE *)
@since 1.4 *)
val for_eachi : 'a t -> (int -> 'a -> unit) -> unit
(** Iterate on elements and their index in the iterator.
[for_eachi seq f] is the same as [iteri f seq], i.e., [iteri] with
arguments reversed.
@since NEXT_RELEASE *)
@since 1.4 *)
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
(** Fold over elements of the iterator, consuming it *)

View file

@ -92,13 +92,13 @@ val for_each : seq:'a t -> ('a -> unit) -> unit
(** Consume the iterator, passing all its arguments to the function.
[for_each seq f] is the same as [iter f seq], i.e., [iter] with
arguments reversed.
@since NEXT_RELEASE *)
@since 1.4 *)
val for_eachi : seq:'a t -> (int -> 'a -> unit) -> unit
(** Iterate on elements and their index in the iterator.
[for_eachi seq f] is the same as [iteri f seq], i.e., [iteri] with
arguments reversed.
@since NEXT_RELEASE *)
@since 1.4 *)
val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a
(** Fold over elements of the iterator, consuming it *)