fork download
  1. let rec remove_duplicates eq l =
  2. let rec check_duplicates eq a l = match l with
  3. |[] -> false
  4. |h::t -> if eq a h then true else check_duplicates eq a t
  5. in match l with
  6. |[] -> []
  7. |h::t -> if (check_duplicates eq h t) then remove_duplicates eq t else h::(remove_duplicates eq t)(* your code goes here *)
Success #stdin #stdout 0s 4216KB
stdin
Standard input is empty
stdout
Standard output is empty