Intersection
Usage
• Intersection[ , , ... ]给出了对所有的  有共同元素的排序列表。
Notes
• 如果  被认为是集合, Intersection给出它们的交集。• Intersection[ , , ... ] 在 StandardForm和 InputForm中输入为  ... .字符  输入为 inter 或 \ [Intersection]. •  必须有相同的头,但它不必是 List. • Intersection[ , ... , SameTest->test] 应用 test到  中的每对元素去决定是否应当认为它们是相同的。
• Intersection[a, b] 在 InputForm和 StandardForm中输入为 a b 或 a \ [Intersection] b. • 参见 Mathematica 全书 : 节 1.8.8.
Further Examples
The intersection of these two lists has two elements.
In[1]:=
|
Out[1]=
|
|