JP Massar | 5 Nov 18:39 2009
Picon

Re: looping on arrays

At 09:32 AM 11/5/2009, Peter Seibel wrote:
>(loop across ...)
>
>-Peter
>
>On Thu, Nov 5, 2009 at 9:27 AM, Francesco Petrogalli
><francesco.petrogalli@...> wrote:
> > Hi everybody,
> >
> > is there a way to loop over the element of an array, something like
> > what is possible to do with hash tables?
> >
> > (loop for key being the hash-keys of hashtable using (hash-value
> > value) etc etc etc...

If you're talking about an N-dimensional array, take a look at

ROW-MAJOR-AREF

(loop for j from 0 below (array-total-size array) as elem = 
(row-major-aref array j) do ...)

or similar 

Gmane