Subject: Re: continuing next iteration
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 02 Sep 2006 22:35:41 -0500
Newsgroups: comp.lang.lisp
Message-ID: <ZbadnQYo4IwQ0GfZnZ2dnUVZ_omdnZ2d@speakeasy.net>
Tayssir John Gabbour <tayss_temp2@yahoo.com> wrote:
+---------------
| At least as far as the standard goes, Loop's limits are glaring
| (because Loop doesn't normally seem limited); like how you can't
| mix up things like FOR and DO/COLLECT clauses.
+---------------

Hunh? I do stuff like that all the time, e.g.:

    > (loop for i below 6
	    finally (return (reverse (pairlis list list2)))
	do (format t "~d" i)
	collect i into list
	do (format t "^2 = ~2d~%" (* i i))
	collect (* i i) into list2)
    0^2 =  0
    1^2 =  1
    2^2 =  4
    3^2 =  9
    4^2 = 16
    5^2 = 25
    ((0 . 0) (1 . 1) (2 . 4) (3 . 9) (4 . 16) (5 . 25))
    > 

Or are you talking about all the FORs having to come before
all the DO/COLLECT/SUM/etc.? Well, C's no better in that regard...


-Rob

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