diff --git a/CHANGELOG.md b/CHANGELOG.md index d351547..6e5ede4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +# 1.4 + +- fix dune files for dune 3 +- add `for_each` and `for_eachi` + # 1.3 - use `inline` annotations diff --git a/iter.opam b/iter.opam index 839c04e..1ea7246 100644 --- a/iter.opam +++ b/iter.opam @@ -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" diff --git a/src/Iter.mli b/src/Iter.mli index 00014f6..35d8db9 100644 --- a/src/Iter.mli +++ b/src/Iter.mli @@ -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 *) diff --git a/src/IterLabels.mli b/src/IterLabels.mli index fe337d4..8c79188 100644 --- a/src/IterLabels.mli +++ b/src/IterLabels.mli @@ -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 *)