/// <summary> /// Returns intersection of two sets. /// </summary> /// <remarks>Intersection contains elements present in both sets.</remarks> public static Set Intersection(Set a, Set b) { a.CheckComparer(b); Set result = new Set(a.Comparer); SetOp.Inersection(a, b, a.Comparer, new Inserter(result)); return(result); }
public static Set Intersection(Set a, Set b) { a.CheckComparer(b); Set collection = new Set(a.Comparer); SetOp.Inersection(a, b, a.Comparer, new Inserter(collection)); return(collection); }