Skip to content

Commit

Permalink
prepare for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Nov 16, 2023
1 parent 90e44a5 commit 4f47de6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

# 1.8

- add `Iter.map_while`
- fix bug in `map_by_2`, add tests

# 1.7

- add let operators in Infix
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.7"
version: "1.8"
authors: ["Simon Cruanes" "Gabriel Radanne"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-clause"
Expand Down
3 changes: 2 additions & 1 deletion src/Iter.mli
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ val map_while : ('a -> [ `Yield of 'b | `Return of 'b | `Stop ]) -> 'a t -> 'b t
{- If [f] returns [`Stop], nothing is added to the sequence and the
iteration stops.}
{- If [f] returns [`Return y], [y] is added to the sequence and the
iteration stops.}} *)
iteration stops.}}
@since 1.8 *)

val fold_while : ('a -> 'b -> 'a * [ `Stop | `Continue ]) -> 'a -> 'b t -> 'a
(** Folds over elements of the iterator, stopping early if the accumulator
Expand Down

0 comments on commit 4f47de6

Please sign in to comment.