Ejemplo n.º 1
0
 public ImmutableHashSet <T> Intersect(ImmutableHashSet <T> other)
 {
     return(ImmutableHashSet.From(this.Where(other.Contains)));
 }
Ejemplo n.º 2
0
 public ImmutableHashSet <T> Difference(ImmutableHashSet <T> other)
 {
     return(ImmutableHashSet.From(this.Where(t => !other.Contains(t))));
 }