Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntersectBy Operator #63

Open
GoogleCodeExporter opened this issue Apr 7, 2015 · 1 comment
Open

IntersectBy Operator #63

GoogleCodeExporter opened this issue Apr 7, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Similar to DistinctBy but with the functionality of Intersect 

so Something like this:

var emails = GetAllEmails();
var uniqueEmails = emails.DistinctBy(x => x.Email).ToList();
var duplicates = emails.IntersectBy(uniqueEmails, x => x.EmailAddress);

Thanks

Original issue reported on code.google.com by [email protected] on 14 Feb 2011 at 9:48

@GoogleCodeExporter
Copy link
Author

Or ExceptBy operator

Original comment by [email protected] on 14 Feb 2011 at 10:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant