mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -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
|
||||
|
||||
- fix dune files for dune 3
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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. *)
|
||||
|
|
|
|||
|
|
@ -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. *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue