mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix: add missing CCVector.of_iter
This commit is contained in:
parent
5143e28ce8
commit
2e3393f81e
2 changed files with 7 additions and 1 deletions
|
|
@ -266,7 +266,9 @@ val to_gen : 'a t -> 'a gen
|
||||||
(** [to_gen as] returns a [gen] of the elements of a slice [as]. *)
|
(** [to_gen as] returns a [gen] of the elements of a slice [as]. *)
|
||||||
|
|
||||||
val to_klist : 'a t -> 'a klist
|
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} *)
|
(** {2 IO} *)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -301,6 +301,10 @@ val to_array : ('a,_) t -> 'a array
|
||||||
val to_list : ('a,_) t -> 'a list
|
val to_list : ('a,_) t -> 'a list
|
||||||
(** Return a list with the elements contained in the vector. *)
|
(** 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
|
val of_seq : ?init:('a,rw) t -> 'a sequence -> ('a, rw) t
|
||||||
(** Convert an Iterator to a vector.
|
(** Convert an Iterator to a vector.
|
||||||
@deprecated use of_iter *)
|
@deprecated use of_iter *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue