mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -05:00
prepare for 1.8
This commit is contained in:
parent
90e44a59a9
commit
4f47de66fe
3 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue