ReadonlycapacityThe members are the integers from 0 up to this number, which is left out.
Whether member is in the set. A value outside the capacity is in no set.
Puts member into the set.
Takes member out of the set.
Whether this set and other, which has the same capacity, hold the same members.
Returns a text that two sets share when they hold the same members, whatever their capacities are. The text can be the key of a map or of an interner.
Yields the members from the smallest to the largest.
A set of the integers from 0 up to a fixed capacity, which is left out. The set keeps one bit for every possible member.
has,addanddeletetake constant time.union,intersection,equals,key,sizeand a loop over the members take time linear in the capacity, at 32 members for each step. The memory is one bit for every possible member.Only
#wordCount,#wordAtand#setWordknow whether the words are one inline number or an array. The other members walk word indices with plain loops, because subset construction calls them in its inner loop, and building a list of the words took up to 7 times as long.