From 2e3393f81eb7d834e8ea213159c2c0fc2c3a0579 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sun, 12 Jan 2020 18:15:43 -0600 Subject: [PATCH 1/2] fix: add missing `CCVector.of_iter` --- src/core/CCArray_sliceLabels.mli | 4 +++- src/core/CCVector.mli | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/CCArray_sliceLabels.mli b/src/core/CCArray_sliceLabels.mli index 90c75920..cf9be498 100644 --- a/src/core/CCArray_sliceLabels.mli +++ b/src/core/CCArray_sliceLabels.mli @@ -266,7 +266,9 @@ val to_gen : 'a t -> 'a gen (** [to_gen as] returns a [gen] of the elements of a slice [as]. *) val to_klist : 'a t -> 'a klist -(** [to_klist as] returns a [klist] of the elements of a slice [as]. *) +(** [to_klist as] returns a [klist] of the elements of a slice [as]. + @deprecated use {!to_std_seq} *) +[@@ocaml.deprecated "use to_std_seq"] (** {2 IO} *) diff --git a/src/core/CCVector.mli b/src/core/CCVector.mli index c3c6e65e..85ac7f9c 100644 --- a/src/core/CCVector.mli +++ b/src/core/CCVector.mli @@ -301,6 +301,10 @@ val to_array : ('a,_) t -> 'a array val to_list : ('a,_) t -> 'a list (** Return a list with the elements contained in the vector. *) +val of_iter : ?init:('a,rw) t -> 'a iter -> ('a, rw) t +(** Convert an Iterator to a vector. + @since NEXT_RELEASE *) + val of_seq : ?init:('a,rw) t -> 'a sequence -> ('a, rw) t (** Convert an Iterator to a vector. @deprecated use of_iter *) From 527c4414d95953c15d209d690b524ca3024de967 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sun, 12 Jan 2020 18:18:27 -0600 Subject: [PATCH 2/2] prepare for 2.8.1 --- CHANGELOG.md | 4 ++++ containers.opam | 2 +- src/core/CCVector.mli | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de2d9125..0bb6d335 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.8.1 + +- add missing `CCVector.of_iter` + ## 2.8 ### Breaking: diff --git a/containers.opam b/containers.opam index 8a6073ac..9a2a6f88 100644 --- a/containers.opam +++ b/containers.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "containers" -version: "2.8" +version: "2.8.1" author: "Simon Cruanes" maintainer: "simon.cruanes.2007@m4x.org" synopsis: "A modular, clean and powerful extension of the OCaml standard library" diff --git a/src/core/CCVector.mli b/src/core/CCVector.mli index 85ac7f9c..b25037de 100644 --- a/src/core/CCVector.mli +++ b/src/core/CCVector.mli @@ -303,7 +303,7 @@ val to_list : ('a,_) t -> 'a list val of_iter : ?init:('a,rw) t -> 'a iter -> ('a, rw) t (** Convert an Iterator to a vector. - @since NEXT_RELEASE *) + @since 2.8.1 *) val of_seq : ?init:('a,rw) t -> 'a sequence -> ('a, rw) t (** Convert an Iterator to a vector.