From ... From: Erik Naggum Subject: Re: distinction? Date: 2000/12/05 Message-ID: <3185040299547567@naggum.net>#1/1 X-Deja-AN: 701529219 References: <3a2962c9@news.infinetgroup.com> <90gtse$gg0$1@news.gte.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 976054621 25807 195.0.192.66 (5 Dec 2000 22:17:01 GMT) Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Mime-Version: 1.0 NNTP-Posting-Date: 5 Dec 2000 22:17:01 GMT Newsgroups: comp.lang.lisp * Paolo Amoroso | Never mind, I have just seen Erik's code. Thanks anyway, Hm. My code is slightly different from the algorithm that Dorai described. His implementation would use a cons cell to hold both the head and the tail, instead of using two variables, and is thus slightly more complex, and would indeed use two extra cons cells, but it could also return it as a single object. That has some value, but it would at that point better be described as a queue, not just a simple list-creating software pattern, but this may just be one of those reasons why software patterns are sometimes useful: It is too hard to make this a general idea except in those cases where it is naturally made into a macro as far as you can type it. #:Erik -- "When you are having a bad day and it seems like everybody is trying to piss you off, remember that it takes 42 muscles to produce a frown, but only 4 muscles to work the trigger of a good sniper rifle." -- Unknown