[chuck-users] iterating over an associative array?
heuermh at gmail.com
Thu Mar 12 17:55:54 EDT 2009
Tom Lieber <lieber at princeton.edu> wrote:
> 2009/3/12 Robert Poor <rdpoor at gmail.com>:
>> How does one iterate over an associative array in ChucK?
> I don't believe that you can.
With arrays, Lists, and Iterators from LiCK we might be able to get
pretty close to a java-style Map. ChucK's Object would need a
hashCode or similar member function, or the Map implementation would
need to be provided with a hashing function.
Without garbage collection lots of what aught to be temporary
Map.Entry objects would linger around though.
More information about the chuck-users