BitsetsNET.RLEBitset.Difference C# (CSharp) Method

Difference() public method

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