// Intersection(s1, s2) - s1 ∩ s2 (iloczyn zbiorów, elementy wspólne) public static ZbiórNaHashtable Intersection(ZbiórNaHashtable s1, ZbiórNaHashtable s2) { ZbiórNaHashtable result = new ZbiórNaHashtable(); foreach (int k in s1.Values) { if (s2.Contains(k)) { result.Insert(k); } } return(result); }