AssociationMap

AssociationMap[f,{key1,key2,}]

連想key1f[key1],key2f[key2],を作る.

AssociationMap[f,key1val1,key2val2,]

連想f[key1val1],f[key2val2],を作る.

AssociationMap[f]

式に適用可能なAssociationMapの演算子形を表す.

詳細

例題

すべて開くすべて閉じる

  (2)

キーのリストに関数をマップして連想を作る:

キーと値を入れ替えて「逆索引」を作る:

AssociationMapの演算子形を使う:

特性と関係  (1)

AssociationMapを並列に計算する:

考えられる問題  (1)

AssociationMap[f,assoc]は,f が規則を返さない場合は,無効な連想を返すことがある:

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

テキスト

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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