[chuck-users] loop over associative array

Atte André Jensen atte.jensen at gmail.com
Tue Jun 20 04:30:35 EDT 2006


How do I loop over an associative array? Since I don't see any foreach, 
I tried the following:

int x[3];
4 => x["n"];
for(0 => int i; i < x.cap(); i++)
<<<"i:",i,", x[i]:",x[i]>>>;

which clearly doesn't work.

Regarding feature requests/bugs in general: Is the wiki up-to-date and 
this in fact where I should have put this? And any plans as to when a 
new version of chuck will arrive?

peace, love & harmony

http://www.atte.dk      | quartet:      http://www.anagrammer.dk
http://www.atte.dk/gps  | compositions: http://www.atte.dk/compositions

More information about the chuck-users mailing list