コード例 #1
0
ファイル: Hash_Set.cs プロジェクト: robologic/DataStructures
 public Hash_Set <TKey> SymetricExcept(Hash_Set <TKey> other)
 {
     return(this.UnionWith(other).Except(this.IntersectWith(other)));
 }
コード例 #2
0
ファイル: Hash_Set.cs プロジェクト: robologic/DataStructures
 public Hash_Set <TKey> IntersectWith(Hash_Set <TKey> other)
 {
     return(new Hash_Set <TKey>(this.table.Where(x => other.Contains(x.Key))));
 }
コード例 #3
0
ファイル: Hash_Set.cs プロジェクト: robologic/DataStructures
 public Hash_Set <TKey> Except(Hash_Set <TKey> other)
 {
     return(new Hash_Set <TKey>(this.table.Where(x => !other.Contains(x.Key))));
 }
コード例 #4
0
ファイル: Hash_Set.cs プロジェクト: robologic/DataStructures
 public Hash_Set <TKey> UnionWith(Hash_Set <TKey> other)
 {
     return(new Hash_Set <TKey>(other.table.Concat(this.table).Distinct()));
 }