Hi,
I've installed the package cl-iterate on my debian machine but now how
do I load it in my code?

I have another problem (well...  that's why I'm trying cl-iterate...):
I want to collect all the pairs (2-list) in the form (i j) given max
values for i and j.
Something like:

{(i,j) in NxN: i<=m and j<=n}

I know I can do it with the following code, but... any smarter idea?

(let* ((m 5)
                (n 6)
                (data '()))
           (loop for i from 0 to n do
                (loop for j from 0 to n do
                     (push (list i j) data)))
           data)

I lack of "loop syntax"....

Thanks

franZ

-- 
Linux Registered User: #414858

P Funking Band
http://www.perugiafunkingband.it
http://www.myspace.com/perugiafunkingband
_______________________________________________
Gardeners mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/gardeners

Reply via email to