DisjointQ

DisjointQ[list1,list2]

list1list2が共通の要素を持たない場合にTrueを,それ以外の場合にはFalseを返す.

詳細とオプション

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

例題

  (1)

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

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

テキスト

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_disjointq, organization={Wolfram Research}, title={DisjointQ}, year={2022}, url={https://reference.wolfram.com/language/ref/DisjointQ.html}, note=[Accessed: 18-December-2024 ]}