Determine the relative compliment of two IEnumerable<T> sets in .net
Posted
by SFun28
on Stack Overflow
See other posts from Stack Overflow
or by SFun28
Published on 2010-06-02T18:59:59Z
Indexed on
2010/06/02
19:04 UTC
Read the original article
Hit count: 267
Hi!
Is there an easy way to get the relative compliment of two sets? Perhaps using LINQ? http://en.wikipedia.org/wiki/Complement_(set_theory)
I have to find the relative compliment of a set A relative to B. Both A and B are of type HashSet but I think the algorithm could be made more generation (IEnumerable or even ISet)?
I could use a solution in either vb.net or C#.
© Stack Overflow or respective owner