AssociationThread

AssociationThread[{key1,key2,}{val1,val2,}]

連想key1val1,key2val2,を与える.

AssociationThread[{key1,key2,},{val1,val2,}]

連想key1val1,key2val2,も与える.

詳細

  • keyiの中に繰り返されているものがある場合は,後のものが先のものを置換する.
  • AssociationThread[keys:>values]は,すべての要素が遅延規則を使う連想を与える.

例題

  (3)

2つのリストから連想を作る:

繰り返されたキーは先のものを置換する:

遅延値で連想を作る:

現在の日付と気温を得る:

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

テキスト

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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