IntersectingQ

IntersectingQ[list1,list2]

list1list2が少なくとも1つの共通要素を持っている場合はTrueを,それ以外の場合はFalseを返す.

詳細とオプション

  • IntersectingQは,頭部がList以外の式に使うことができる.
  • 連想に適用されると,IntersectingQはその値を比較する.
  • IntersectingQ[list1,list2,SameTesttest]listi中の要素の各ペアに test を適用して両者を同じものとみなすべきかどうかを判定する.

例題

  (1)

リストに共通の要素があるかどうかの検定を行う:

Wolfram Research (2014), IntersectingQ, Wolfram言語関数, https://reference.wolfram.com/language/ref/IntersectingQ.html (2022年に更新).

テキスト

Wolfram Research (2014), IntersectingQ, Wolfram言語関数, https://reference.wolfram.com/language/ref/IntersectingQ.html (2022年に更新).

CMS

Wolfram Language. 2014. "IntersectingQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/IntersectingQ.html.

APA

Wolfram Language. (2014). IntersectingQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntersectingQ.html

BibTeX

@misc{reference.wolfram_2024_intersectingq, author="Wolfram Research", title="{IntersectingQ}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/IntersectingQ.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_intersectingq, organization={Wolfram Research}, title={IntersectingQ}, year={2022}, url={https://reference.wolfram.com/language/ref/IntersectingQ.html}, note=[Accessed: 21-November-2024 ]}