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 <[EMAIL PROTECTED]> An: Stephan Beal <[EMAIL PROTECTED]> Referenzen: <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
