BitsetsNET.RLEBitset.DifferenceWith C# (CSharp) Method

DifferenceWith() public method

Performs the set difference, defined as the set in A and not in B.
public DifferenceWith ( IBitset otherSet ) : void
otherSet IBitset the other IBitset
return void
        public void DifferenceWith(IBitset otherSet)
        {
            RLEBitset otherRLESet = (RLEBitset)otherSet; // cast to an RLEBitset - errors if cannot cast
            AndWith(otherRLESet.Not());
        }