BitsetsNET.ArrayContainer.AndNot C# (CSharp) Method

AndNot() public method

Returns the elements of this ArrayContainer that are not in the other ArrayContainer.
public AndNot ( ArrayContainer x ) : Container
x ArrayContainer the other ArrayContainer
return Container
        public override Container AndNot(ArrayContainer x)
        {
            int desiredCapacity = this.GetCardinality();
            var answer = new ArrayContainer(desiredCapacity);

            // Compute the cardinality of the new container
            answer.Cardinality = Utility.UnsignedDifference(this.Content,
                                                            desiredCapacity,
                                                            x.Content,
                                                            x.GetCardinality(),
                                                            answer.Content);
            return answer;
        }

Same methods

ArrayContainer::AndNot ( BitsetContainer x ) : Container