mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 03:05:29 -05:00
a bugfix in Sequence.product;
changed default block size of MList
This commit is contained in:
parent
0dd50ca9a7
commit
9b6acc00ae
1 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ module MList = struct
|
|||
|
||||
(** Build a MList of elements of the Seq. The optional argument indicates
|
||||
the size of the blocks *)
|
||||
let of_seq ?(size=64) seq =
|
||||
let of_seq ?(size=8) seq =
|
||||
(* read sequence into a MList.t *)
|
||||
let start = make size in
|
||||
let l = ref start in
|
||||
|
|
@ -255,7 +255,7 @@ let sort_uniq ?(cmp=Pervasives.compare) seq =
|
|||
|
||||
(** Cartesian product of the sequences. *)
|
||||
let product outer inner =
|
||||
let outer = persistent outer in
|
||||
let inner = persistent inner in
|
||||
from_iter
|
||||
(fun k ->
|
||||
outer (fun x ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue