Something like HashSet?

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.

  • mikekmikek Posts: 192

    Thank you, that's good to read as I have a few cases where it would be useful.

Sign In or Register to comment.