Skip to content

Instantly share code, notes, and snippets.

@zhaopan
Last active March 1, 2023 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhaopan/11cd0c14b712bfd74a256418abcd8fbf to your computer and use it in GitHub Desktop.
Save zhaopan/11cd0c14b712bfd74a256418abcd8fbf to your computer and use it in GitHub Desktop.
List-Union-Intersect-Except
并集:var union =arps.Union(flts).ToList();
交集:var inters = arps.Intersect(flts)ToList();
差集:var except= arps.Except(flts)ToList();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment