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,…}]. »
范例
打开所有单元关闭所有单元
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 语言. 2014. "AssociationMap." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AssociationMap.html.
APA
Wolfram 语言. (2014). AssociationMap. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AssociationMap.html 年