[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC mode loads CL
From: |
Luc Teirlinck |
Subject: |
Re: CC mode loads CL |
Date: |
Wed, 11 Feb 2004 09:11:38 -0600 (CST) |
Kim Storm wrote:
IMO, we should definitely use this version instead of the current.
Luc?
I agree. Maybe one could make a slight change to the docstring to
make clear that no setq is necessary:
(defun 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."
(let ((tail list))
(while tail
(setcdr tail (delete (car tail) (cdr tail)))
(setq tail (cdr tail))))
list)
Sincerely,
Luc.
Re: CC mode loads CL, Dave Love, 2004/02/05
Re: CC mode loads CL, Martin Stjernholm, 2004/02/08