Compare commits

..

No commits in common. "fd1495324a394a4836c5e1da49981b6a290b7cf3" and "18ffdd707b2e1e5dfe3407b971a3f783373afe1d" have entirely different histories.

3 changed files with 3 additions and 5 deletions

View file

@ -1153,14 +1153,12 @@ module Iter_ = struct
let bench_to_array n =
let iter () = Iter.to_array Iter.(1 -- n)
and gen () = Gen.to_array Gen.(1 -- n)
and oseq () = OSeq.to_array OSeq.(1 -- n)
and of_iter () = CCArray.of_iter Iter.(1 -- n) in
and oseq () = OSeq.to_array OSeq.(1 -- n) in
B.throughputN 3 ~repeat
[
"iter.to_array", iter, ();
"gen.to_array", gen, ();
"oseq.to_array", oseq, ();
"ccarray.of_iter", of_iter, ();
]
let bench_cons n =

View file

@ -243,7 +243,7 @@ val to_iter : 'a t -> 'a iter
val of_iter : 'a iter -> 'a t
(** [of_iter iter] builds a array from a given [iter].
In the result, elements appear in the same order as they did in the source [iter].
@since NEXT_RELEASE *)
@since 3.15 *)
val to_seq : 'a t -> 'a Seq.t
(** [to_seq a] returns a [Seq.t] of the elements of an array [a].

View file

@ -251,7 +251,7 @@ val to_iter : 'a t -> 'a iter
val of_iter : 'a iter -> 'a t
(** [of_iter iter] builds a array from a given [iter].
In the result, elements appear in the same order as they did in the source [iter].
@since NEXT_RELEASE *)
@since 3.15 *)
val to_seq : 'a t -> 'a Seq.t
(** [to_seq a] returns a [Seq.t] of the elements of an array [a].