@defun delete-dups list
This function destructively removes all @code{equal} duplicates from
-@var{list} and returns the result. Of several @code{equal}
-occurrences of an element in @var{list}, @code{delete-dups} keeps the
-last one.
-
-The value of @var{list} after a call to this function is undefined.
-Usually, we store the return value back in @var{list}:
-
-@example
-(setq list (delete-dups list))
-@end example
+@var{list}, stores the result in @var{list} and returns it. Of
+several @code{equal} occurrences of an element in @var{list},
+@code{delete-dups} keeps the first one.
@end defun
See also the function @code{add-to-list}, in @ref{Setting Variables},