iterating over an associative array?
12 Mar
12 Mar
4:58 p.m.
2009/3/12 Robert Poor
How does one iterate over an associative array in ChucK?
I don't believe that you can. -- Tom Lieber http://AllTom.com/
5:55 p.m.
Tom Lieber
2009/3/12 Robert Poor
: 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. michael
5727
Age (days ago)
5727
Last active (days ago)
2 comments
3 participants
participants (3)
-
Michael Heuer
-
Robert Poor
-
Tom Lieber