[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] array search



AFAIK, no, you can only find all indexes by iterating through the array.
cheers

Nicolas

> I had an 2d array maked of 1s and 0s, is there a way
> to get the indexes of every element in the array with
> value 1? without iterating throught the array using
> Python "for"?
>
> thankx
>
> ______________________________________________________________________
> Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati,
l'antivirus, il filtro Anti-spam
> http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
>