Re: Detele repeated in a list
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 10 Jun 2008 12:35:42 -0700
Pascal Costanza <pc@xxxxxxxxx> writes:
Alexandre Almeida wrote:
Yes, I have... But i need to build that function, for a school work :(
(defun rem-duplicates (list)
(loop for (first . rest) on (append list list)
unless (member first (reverse rest) :test #'equal)
collect first))
That's slightly evil.
<insert maniacal laughter>
--
Thomas A. Russ, USC/Information Sciences Institute
.
- References:
- Detele repeated in a list
- From: Alexandre Almeida
- Re: Detele repeated in a list
- From: Tayssir John Gabbour
- Re: Detele repeated in a list
- From: Alexandre Almeida
- Re: Detele repeated in a list
- From: Pascal Costanza
- Detele repeated in a list
- Prev by Date: Re: Detele repeated in a list
- Next by Date: Re: P-Lisp rides again!
- Previous by thread: Re: Detele repeated in a list
- Next by thread: Re: Detele repeated in a list
- Index(es):
Relevant Pages
|
|