Skip to content

Commit

Permalink
prepare for 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 22, 2022
1 parent 8be2428 commit 65ab937
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

# 1.4

- fix dune files for dune 3
- add `for_each` and `for_eachi`

# 1.3

- use `inline` annotations
Expand Down
2 changes: 1 addition & 1 deletion iter.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opam-version: "2.0"
name: "iter"
version: "1.3"
version: "1.4"
authors: ["Simon Cruanes" "Gabriel Radanne"]
maintainer: "[email protected]"
license: "BSD-2-clause"
Expand Down
4 changes: 2 additions & 2 deletions src/Iter.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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 *)
Expand Down
4 changes: 2 additions & 2 deletions src/IterLabels.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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 *)
Expand Down

0 comments on commit 65ab937

Please sign in to comment.