prepare for 1.8

This commit is contained in:
Simon Cruanes 2023-11-15 23:15:26 -05:00
parent 90e44a59a9
commit 4f47de66fe
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,9 @@
# 1.8
- add `Iter.map_while`
- fix bug in `map_by_2`, add tests
# 1.7 # 1.7
- add let operators in Infix - add let operators in Infix

View file

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

View file

@ -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 {- If [f] returns [`Stop], nothing is added to the sequence and the
iteration stops.} iteration stops.}
{- If [f] returns [`Return y], [y] is added to the sequence and the {- 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 val fold_while : ('a -> 'b -> 'a * [ `Stop | `Continue ]) -> 'a -> 'b t -> 'a
(** Folds over elements of the iterator, stopping early if the accumulator (** Folds over elements of the iterator, stopping early if the accumulator