On Jun 5, 2009, at 11:24 AM, Alessio Stalla wrote:
> (loop for i from 0 to m
> append (loop for j from 0 to n
> collect (list i j))))
If speed/consing is essential, you may consider using nconc instead
of append:
(loop for i from 0 to m
nconc (loop for j from 0 to n
collect (list i j))))
On the other hand, if you are on a quest for using the least symbols...
(loop for i below (* n m)
collect (multiple-value-list (floor i m))))
-- Terje Norderhaug
_______________________________________________
Gardeners mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/gardeners