mirror of
https://github.com/c-cube/iter.git
synced 2025-12-05 19:00:31 -05:00
prepare for 1.5
This commit is contained in:
parent
a3b3426365
commit
688689b18b
4 changed files with 13 additions and 7 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
# 1.5
|
||||||
|
|
||||||
|
- use Seq
|
||||||
|
- remove Stream entirely to be ready for OCaml 5.0
|
||||||
|
- add `of_gen_once`
|
||||||
|
|
||||||
# 1.4
|
# 1.4
|
||||||
|
|
||||||
- fix dune files for dune 3
|
- fix dune files for dune 3
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
name: "iter"
|
name: "iter"
|
||||||
version: "1.4"
|
version: "1.5"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -569,12 +569,12 @@ val of_opt : 'a option -> 'a t
|
||||||
|
|
||||||
val of_seq : 'a Seq.t -> 'a t
|
val of_seq : 'a Seq.t -> 'a t
|
||||||
(** Iterator of elements of a {!Seq.t}.
|
(** Iterator of elements of a {!Seq.t}.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_seq_persistent : 'a t -> 'a Seq.t
|
val to_seq_persistent : 'a t -> 'a Seq.t
|
||||||
(** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory).
|
(** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory).
|
||||||
This does not work on infinite iterators.
|
This does not work on infinite iterators.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_stack : 'a Stack.t -> 'a t -> unit
|
val to_stack : 'a Stack.t -> 'a t -> unit
|
||||||
(** Push elements of the iterator on the stack *)
|
(** 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
|
val of_gen_once : 'a gen -> 'a t
|
||||||
(** One shot iterator using this generator.
|
(** One shot iterator using this generator.
|
||||||
It must not be traversed twice.
|
It must not be traversed twice.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_gen : 'a t -> 'a gen
|
val to_gen : 'a t -> 'a gen
|
||||||
(** Make the iterator persistent (O(n)) and then iterate on it. Eager. *)
|
(** Make the iterator persistent (O(n)) and then iterate on it. Eager. *)
|
||||||
|
|
|
||||||
|
|
@ -533,12 +533,12 @@ val of_opt : 'a option -> 'a t
|
||||||
|
|
||||||
val of_seq : 'a Seq.t -> 'a t
|
val of_seq : 'a Seq.t -> 'a t
|
||||||
(** Iterator of elements of a {!Seq.t}.
|
(** Iterator of elements of a {!Seq.t}.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_seq_persistent : 'a t -> 'a Seq.t
|
val to_seq_persistent : 'a t -> 'a Seq.t
|
||||||
(** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory).
|
(** Convert to a {!Seq}. Linear in memory and time (a copy is made in memory).
|
||||||
This does not work on infinite iterators.
|
This does not work on infinite iterators.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_stack : 'a Stack.t -> 'a t -> unit
|
val to_stack : 'a Stack.t -> 'a t -> unit
|
||||||
(** Push elements of the iterator on the stack *)
|
(** 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
|
val of_gen_once : 'a gen -> 'a t
|
||||||
(** One shot iterator using this generator.
|
(** One shot iterator using this generator.
|
||||||
It must not be traversed twice.
|
It must not be traversed twice.
|
||||||
@since NEXT_RELEASE *)
|
@since 1.5 *)
|
||||||
|
|
||||||
val to_gen : 'a t -> 'a gen
|
val to_gen : 'a t -> 'a gen
|
||||||
(** Make the iterator persistent (O(n)) and then iterate on it. Eager. *)
|
(** Make the iterator persistent (O(n)) and then iterate on it. Eager. *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue