This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: (ice-9 common-list) `uniq' replacement
- To: ttn at glug dot org
- Subject: Re: (ice-9 common-list) `uniq' replacement
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 24 Jul 2000 01:01:12 +0200
- Cc: guile at sourceware dot cygnus dot com
- References: <200007231212.FAA31627@revel.glug.org>
thi <ttn@revel.glug.org> writes:
> this version of `uniq' doesn't overflow the default guile stack like the
> one in (ice-9 common-list) does for very large inputs.
Thanks! I have applied this.
> the `reverse' is habitual, feel free to omit it...
Returning the result list in the same order as the input list is a
good thing. I have changed your `reverse' to `reverse!' because the
list is freshly consed and nobody will get confused by reversing it in
place. I also used `(null? l)' in place of `(eq? '() l)'