[chuck-users] get hash keys from associative array

George Locke george.locke.maxmsp at gmail.com
Tue Sep 25 21:21:17 EDT 2012


int hash[];
0 => hash["zero"];
1 => hash["one"];
hash.keys @=> string keys[];

Is there anything like this, some way for an associative array to tell you
what keys it has?

Ge apparently mentioned it as a development goal for 6 years ago (
https://lists.cs.princeton.edu/pipermail/chuck-users/2006-March/000436.html ),
but searching for "key" in the versions page shows no update in this area.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20120925/eb8af26e/attachment.htm>

More information about the chuck-users mailing list