mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-03 20:24:29 +00:00
(Sets And Lists): Update description of delete-dups.
This commit is contained in:
parent
8a9825f74d
commit
efb478436e
@ -1436,16 +1436,9 @@ comparison.
|
||||
|
||||
@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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user