Something like HashSet?
mikek
Posts: 195
In my script I have to work with a lot string values (thousands) and each time need to make sure the current value doesn't exist already before adding it.
Is there an alternative to array? Something like HashSet or Dictionary where a find/contains method doesn't check all the values but uses some kind of hash value allowing it to keep the same speed independent of the amount of values it contains?
Comments
This is, I am told, a standard ECMA object so it will be available in DS.
Thank you, that's good to read as I have a few cases where it would be useful.