[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Re: func to remove dupes]
From: |
Christoph Schulz |
Subject: |
[Fwd: Re: func to remove dupes] |
Date: |
Thu, 28 Jun 2007 15:38:38 +0200 |
User-agent: |
Thunderbird 1.5.0.12 (Windows/20070509) |
Erroneously replied to the OP only.
Regards,
Christoph
-------- Original-Nachricht --------
Betreff: Re: func to remove dupes
Datum: Thu, 28 Jun 2007 15:05:15 +0200
Von: Christoph Schulz <address@hidden>
An: Stephan Beal <address@hidden>
Referenzen: <address@hidden>
Hello Stephan!
Stephan Beal schrieb:
> Hi, all!
>
> i've created a function which removes duplicates from a list while
> keeping their relative order untouched (code is below). While it
> appears to work fine, i'm not at all happy with the temp var it uses
> ($(remove-dupes-holder)). Is there anyone out there who would care
> to take a crack at improving this function, so that it doesn't need
> the extra variable (or any improvement, for that matter)?
> [...]
What about
listUnique = $(if $1,$(strip $(word 1,$1) $(call $0,$(filter-out $(word
1,$1),$1))))
?
Regards,
Christoph
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fwd: Re: func to remove dupes],
Christoph Schulz <=