mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-03-07 21:27:55 -05:00
forgot to format
This commit is contained in:
parent
42bfe9c8c6
commit
bc9f361e56
1 changed files with 9 additions and 7 deletions
|
|
@ -266,13 +266,15 @@ module Op = struct
|
||||||
list_small gen_x >|= fun l ->
|
list_small gen_x >|= fun l ->
|
||||||
Append l, size + List.length l );
|
Append l, size + List.length l );
|
||||||
];
|
];
|
||||||
(if size < 10_000 then [
|
(if size < 10_000 then
|
||||||
|
[
|
||||||
(* flat map can explode, only do it if list isn't too big *)
|
(* flat map can explode, only do it if list isn't too big *)
|
||||||
( 1,
|
( 1,
|
||||||
list_size (0 -- 5) gen_x >|= fun l ->
|
list_size (0 -- 5) gen_x >|= fun l ->
|
||||||
Flat_map l, size * (1 + List.length l) );
|
Flat_map l, size * (1 + List.length l) );
|
||||||
] else [])
|
]
|
||||||
;
|
else
|
||||||
|
[]);
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue