> But as these are associative tables rather than indexed tables
Well, yes, but that's how sets usually work. Unless you want to throw them into an array, which nobody does for obvious reasons, you'll be using a hashset, which is not much different than a hashmap that maps values to booleans...