public ISimpleSet <T> Diff(ISimpleSet <T> other)
        {
            var set = new SimpleHashSet <T>();

            foreach (var item in this)
            {
                if (!other.Contains(item))
                {
                    set.Add(item);
                }
            }
            return(set);
        }
Beispiel #2
0
 public bool Contains(long studentId, long courseId) => Set.Contains(new CreditData(studentId, courseId));