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 ->
|
||||
Append l, size + List.length l );
|
||||
];
|
||||
(if size < 10_000 then [
|
||||
(* flat map can explode, only do it if list isn't too big *)
|
||||
( 1,
|
||||
list_size (0 -- 5) gen_x >|= fun l ->
|
||||
Flat_map l, size * (1 + List.length l) );
|
||||
] else [])
|
||||
;
|
||||
(if size < 10_000 then
|
||||
[
|
||||
(* flat map can explode, only do it if list isn't too big *)
|
||||
( 1,
|
||||
list_size (0 -- 5) gen_x >|= fun l ->
|
||||
Flat_map l, size * (1 + List.length l) );
|
||||
]
|
||||
else
|
||||
[]);
|
||||
]
|
||||
in
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue