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