(1.0) Clearing out an Associative Array

jicman cabrera_ at _wrc.xerox.com
Mon Jan 28 10:30:58 PST 2008


Greetings.

Long time no write. :-)

I know that I can get the keys of an Associative array and do a foreach loop and remove the keys of the array, but is there an easier and quicker way?  I know that I can set any non-Associative array to [], ie,

myArr = [];

and that is sufficient or set the length to 0; but how about the Associative arrays?  Is there a quick way of doing this?

thanks,

josé


More information about the Digitalmars-d-learn mailing list