Skip to content

Commit

Permalink
prepare for 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Jul 7, 2022
1 parent a3b3426 commit 688689b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion iter.opam
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/Iter.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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 *)
Expand Down Expand Up @@ -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. *)
Expand Down
6 changes: 3 additions & 3 deletions src/IterLabels.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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 *)
Expand Down Expand Up @@ -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. *)
Expand Down

0 comments on commit 688689b

Please sign in to comment.