delete-dups

delete-dups is a compiled Lisp function in `subr.el'.

(delete-dups LIST)

Destructively remove `equal' duplicates from LIST.
Store the result in LIST and return it. LIST must be a proper list.
Of several `equal' occurrences of an element in LIST, the first
one is kept.