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

Re: [pygame] array search



On Saturday 27 March 2004 07:33, Nicolás Sanguinetti wrote:
> AFAIK, no, you can only find all indexes by iterating through the array.
> cheers
>
> Nicolas

Even if there is some syntactic sugar to make this easier ( And I think there 
is, check out the docs on NumArray ), it essentially still uses a for loop 
inside to walk through the array. It merely keeps you from having to write 
one yourself. :)

-Daniel