From 688689b18b2d73adcb532f3b06d72722da1cdce6 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 6 Jul 2022 22:13:38 -0400 Subject: [PATCH] prepare for 1.5 --- CHANGELOG.md | 6 ++++++ iter.opam | 2 +- src/Iter.mli | 6 +++--- src/IterLabels.mli | 6 +++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e5ede4..18bc7c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ +# 1.5 + +- use Seq +- remove Stream entirely to be ready for OCaml 5.0 +- add `of_gen_once` + # 1.4 - fix dune files for dune 3 diff --git a/iter.opam b/iter.opam index af35350..b418737 100644 --- a/iter.opam +++ b/iter.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "iter" -version: "1.4" +version: "1.5" authors: ["Simon Cruanes" "Gabriel Radanne"] maintainer: "simon.cruanes.2007@m4x.org" license: "BSD-2-clause" diff --git a/src/Iter.mli b/src/Iter.mli index 8cc4f92..d390844 100644 --- a/src/Iter.mli +++ b/src/Iter.mli @@ -569,12 +569,12 @@ val of_opt : 'a option -> 'a t val of_seq : 'a Seq.t -> 'a t (** Iterator of elements of a {!Seq.t}. - @since NEXT_RELEASE *) + @since 1.5 *) val to_seq_persistent : 'a t -> 'a Seq.t (** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory). This does not work on infinite iterators. - @since NEXT_RELEASE *) + @since 1.5 *) val to_stack : 'a Stack.t -> 'a t -> unit (** Push elements of the iterator on the stack *) @@ -658,7 +658,7 @@ val of_gen : 'a gen -> 'a t val of_gen_once : 'a gen -> 'a t (** One shot iterator using this generator. It must not be traversed twice. - @since NEXT_RELEASE *) + @since 1.5 *) val to_gen : 'a t -> 'a gen (** Make the iterator persistent (O(n)) and then iterate on it. Eager. *) diff --git a/src/IterLabels.mli b/src/IterLabels.mli index f9927b9..d2eab6a 100644 --- a/src/IterLabels.mli +++ b/src/IterLabels.mli @@ -533,12 +533,12 @@ val of_opt : 'a option -> 'a t val of_seq : 'a Seq.t -> 'a t (** Iterator of elements of a {!Seq.t}. - @since NEXT_RELEASE *) + @since 1.5 *) val to_seq_persistent : 'a t -> 'a Seq.t (** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory). This does not work on infinite iterators. - @since NEXT_RELEASE *) + @since 1.5 *) val to_stack : 'a Stack.t -> 'a t -> unit (** Push elements of the iterator on the stack *) @@ -623,7 +623,7 @@ val of_gen : 'a gen -> 'a t val of_gen_once : 'a gen -> 'a t (** One shot iterator using this generator. It must not be traversed twice. - @since NEXT_RELEASE *) + @since 1.5 *) val to_gen : 'a t -> 'a gen (** Make the iterator persistent (O(n)) and then iterate on it. Eager. *)