intsets
nimony/lib/std/intsets.nim
type IntSet = object t: Table
func initIntSet(): IntSetfunc incl(s: var IntSet; x: int64)func excl(s: var IntSet; x: int64)func contains(s: IntSet; x: int64): boolfunc containsOrIncl(s: var IntSet; x: int64): boolfunc len(s: IntSet): int64The number of elements in
s.func ==(a: IntSet; b: IntSet): boolSame elements, however the two sets were built.
func hash(s: IntSet): uint64Combines the blocks commutatively: the table keeps them in insertion order, and two equal sets need not have inserted them alike.
iterator items(s: IntSet): int64