AssociationMap
AssociationMap[f,{key1,key2,…}]
連想key1f[key1],key2f[key2],…を作る.
AssociationMap[f,key1val1,key2val2,…]
連想f[key1val1],f[key2val2],…を作る.
式に適用可能なAssociationMapの演算子形を表す.
詳細
- AssociationMap[f,assoc]の場合は,繰り返されるキーの後のものが先のものに置き換わる.
- AssociationMap[f][expr]はAssociationMap[f,expr]と等しい.
- Parallelize[AssociationMap[f,{key1,key2,…}]]はAssociationMap[f,{key1,key2,…}]をすべてのサブカーネルで並列に計算する. »
例題
すべて開くすべて閉じる例 (2)
特性と関係 (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