mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-05 19:00:31 -05:00
Compare commits
No commits in common. "fd1495324a394a4836c5e1da49981b6a290b7cf3" and "18ffdd707b2e1e5dfe3407b971a3f783373afe1d" have entirely different histories.
fd1495324a
...
18ffdd707b
3 changed files with 3 additions and 5 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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].
|
||||
|
|
|
|||
|
|
@ -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].
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue