Skip to content

Commit c630eae

Browse files
committed
Use List.concat_map in MyARG.cartesian_concat_paths
1 parent eae4fb2 commit c630eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arg/myARG.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct
278278
let next_opt _ = None
279279
end
280280

281-
let cartesian_concat_paths (ps : cfg_path list) (qs : cfg_path list) : cfg_path list = List.concat (List.map (fun p -> List.map (fun q -> p @ q) qs) ps)
281+
let cartesian_concat_paths (ps : cfg_path list) (qs : cfg_path list) : cfg_path list = List.concat_map (fun p -> List.map (fun q -> p @ q) qs) ps
282282

283283
let partition_if_next if_next =
284284
let (if_next_trues, if_next_falses) = List.partition (function

0 commit comments

Comments
 (0)