Subject: Re: The LOOP macro (was Re: Be afraid of XML)
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 13 Mar 2004 08:05:09 -0600
Newsgroups: comp.lang.lisp
Message-ID: <YOCdnTFgR8mIiM7d3czS-g@speakeasy.net>
szymon  <szymon@dont.have.email> wrote:
+---------------
| Peter Seibel wrote{in his book: 34. Appendix: LOOP for Black-Belts}:
| >  (loop for i upto 10 collect i)
| >  collects the first ten integers but ..."
| 
| ten integers??
| CL-USER> (length (loop for i upto 10 collect i))
| 11
| 
| miss I smthing?
+---------------

Nope. It's a typo. If he really wants ten, it should say either this:

	(loop for i from 1 upto 10 collect i)	; 1..10

or this:

	(loop for i below 10 collect i)		; 0..9


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607