Ejemplo n.º 1
0
        /// <summary>
        /// Returns difference of two sets.
        /// </summary>
        /// <remarks>
        /// Difference contains elements present in first set, but not in the second.<br/>
        /// Difference is not symmetric. Difference(a,b) is not equal to Difference(b,a)
        /// </remarks>
        public static Set Difference(Set a, Set b)
        {
            a.CheckComparer(b);
            Set result = new Set(a.Comparer);

            SetOp.Difference(a, b, a.Comparer, new Inserter(result));
            return(result);
        }
Ejemplo n.º 2
0
        public static Set Difference(Set a, Set b)
        {
            a.CheckComparer(b);
            Set collection = new Set(a.Comparer);

            SetOp.Difference(a, b, a.Comparer, new Inserter(collection));
            return(collection);
        }