KeyIntersection

KeyIntersection[{assoc1,assoc2,}]

すべての associに現れるキーの要素のみが保たれた連想のリストを生成する.

詳細

  • KeyIntersectionは,すべての連想が同じ順序で並べられたキーを持つ連想のリストを返す.
  • キーは,associのシーケンスに最初に登場した順序で現れる.
  • KeyIntersectionは,Associationオブジェクトだけでなく規則のリストにも適用することができる.

例題

  (4)

共通のキーを持つ連想のリストを生成する:

リストから連想を生成する:

混合集合から連想を生成する:

KeyIntersectionはキーを同じ順になるように並べ替える:

Wolfram Research (2014), KeyIntersection, Wolfram言語関数, https://reference.wolfram.com/language/ref/KeyIntersection.html.

テキスト

Wolfram Research (2014), KeyIntersection, Wolfram言語関数, https://reference.wolfram.com/language/ref/KeyIntersection.html.

CMS

Wolfram Language. 2014. "KeyIntersection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyIntersection.html.

APA

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

BibTeX

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

BibLaTeX

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