prepare for 1.5

This commit is contained in:
Simon Cruanes 2022-07-06 22:13:38 -04:00
parent a3b3426365
commit 688689b18b
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 13 additions and 7 deletions

View file

@ -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

View file

@ -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"

View file

@ -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. *)

View file

@ -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. *)