Title text = "
Associative arrays
"
That's rather abstract. An example of what's actually desired would be in order. Do you mean (simply) a one-dimensional array indexed by arbitrary strings, with addition, deletion, lookup, and modification capabilities? Really ... does anyone have something concrete in mind? How about ...
Code:
aarray streetnums
aarray /add streetnums "Vince" "1067"
echo Vince's street number is %streetnums["Vince"]
That's pretty simple-minded. On the surface, it doesn't allow iteration over the existing indices (which might be desirable).
I have seen the STL's "map" class mentioned in connection with such things.