fix(list): support 4.03 (using CCList.init)

This commit is contained in:
favonia 2021-05-22 21:29:21 -05:00
parent 6d2dc4ccf4
commit c030beaf52

View file

@ -769,7 +769,7 @@ let sorted_diff ~cmp l1 l2 =
let l = sorted_diff ~cmp:CCInt.compare (List.sort CCInt.compare l1) (List.sort CCInt.compare l2) in \
l = sort CCInt.compare l) (* [is_sorted] is after this function *)
Q.(triple small_nat small_nat int) (fun (n1,n2,x) -> \
let l = sorted_diff ~cmp:CCInt.compare (List.init n1 (fun _ -> x)) (List.init n2 (fun _ -> x)) in \
let l = sorted_diff ~cmp:CCInt.compare (CCList.init n1 (fun _ -> x)) (CCList.init n2 (fun _ -> x)) in \
count (CCInt.equal x) l = CCInt.max (n1 - n2) 0)
*)