Std.BitSet
18 public declarations
- BitSet
Sparse blocks of 64 IDs. Construct through this module to preserve block invariants.
- blocks
&Std.BitSet.BitSet -> Map[UInt64, UInt64]The words the set is stored as, keyed by where each begins.
- contains
&Std.BitSet.BitSet -> UInt64 -> BoolWhether a number is in the set.
- difference
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> Std.BitSet.BitSetEvery number in the first set and not the second.
- empty
Std.BitSet.BitSetA set holding nothing.
- fromArray
&Array[UInt64] -> Std.BitSet.BitSetA set holding each of these numbers.
- fromBlocks
&Map[UInt64, UInt64] -> Result[Std.BitSet.BitSet, UInt64]Validate block addresses and omit empty blocks.
- insert
&Std.BitSet.BitSet -> UInt64 -> Std.BitSet.BitSetThe set with a number added. Adding one already there changes nothing.
- intersection
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> Std.BitSet.BitSetEvery number in both sets.
- isDisjointFrom
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> BoolWhether the two sets share no number.
- isEmpty
&Std.BitSet.BitSet -> BoolWhether the set holds nothing.
- isSubsetOf
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> BoolWhether every number in the first set is in the second.
- remove
&Std.BitSet.BitSet -> UInt64 -> Std.BitSet.BitSetThe set with a number taken out, if it was there.
- singleton
UInt64 -> Std.BitSet.BitSetA set holding one number.
- size
&Std.BitSet.BitSet -> UInt128UInt128 can count even the entire UInt64 ID domain.
- symmetricDifference
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> Std.BitSet.BitSetEvery number in one set but not the other.
- toArray
&Std.BitSet.BitSet -> Array[UInt64]Materialize members in ascending order.
- union
&Std.BitSet.BitSet -> &Std.BitSet.BitSet -> Std.BitSet.BitSetEvery number in either set.
