Skip to content

Commit 4f47de6

Browse files
committed
prepare for 1.8
1 parent 90e44a5 commit 4f47de6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
# 1.8
3+
4+
- add `Iter.map_while`
5+
- fix bug in `map_by_2`, add tests
6+
27
# 1.7
38

49
- add let operators in Infix

iter.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "iter"
3-
version: "1.7"
3+
version: "1.8"
44
authors: ["Simon Cruanes" "Gabriel Radanne"]
55
maintainer: "simon.cruanes.2007@m4x.org"
66
license: "BSD-2-clause"

src/Iter.mli

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ val map_while : ('a -> [ `Yield of 'b | `Return of 'b | `Stop ]) -> 'a t -> 'b t
496496
{- If [f] returns [`Stop], nothing is added to the sequence and the
497497
iteration stops.}
498498
{- If [f] returns [`Return y], [y] is added to the sequence and the
499-
iteration stops.}} *)
499+
iteration stops.}}
500+
@since 1.8 *)
500501

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

0 commit comments

Comments
 (0)