找到两个集合中交集部分:
source code:
IEnumerable<int> a = new List<int>{
{ }, { }, { }
}; IEnumerable<int> b = new List<int> {
{ }, { }, { }
}; IEnumerable<int> result = a.Intersect(b); result.ForEach(delegate (int n)
{
Write(n);
});
2023-08-28 23:49:34
找到两个集合中交集部分:
source code:
IEnumerable<int> a = new List<int>{
{ }, { }, { }
}; IEnumerable<int> b = new List<int> {
{ }, { }, { }
}; IEnumerable<int> result = a.Intersect(b); result.ForEach(delegate (int n)
{
Write(n);
});