AssociateTo[a,keyval]
changes the association a by adding the key-value pair keyval.
AssociateTo[a,{key1val1,key2val2,…}]
adds all key-value pairs keyivali.


AssociateTo
AssociateTo[a,keyval]
changes the association a by adding the key-value pair keyval.
AssociateTo[a,{key1val1,key2val2,…}]
adds all key-value pairs keyivali.
Details

- AssociateTo has attribute HoldFirst.
- AssociateTo effectively modifies the value of a in place.
Related Guides
History
Text
Wolfram Research (2014), AssociateTo, Wolfram Language function, https://reference.wolfram.com/language/ref/AssociateTo.html.
CMS
Wolfram Language. 2014. "AssociateTo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AssociateTo.html.
APA
Wolfram Language. (2014). AssociateTo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AssociateTo.html
BibTeX
@misc{reference.wolfram_2025_associateto, author="Wolfram Research", title="{AssociateTo}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/AssociateTo.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_associateto, organization={Wolfram Research}, title={AssociateTo}, year={2014}, url={https://reference.wolfram.com/language/ref/AssociateTo.html}, note=[Accessed: 11-August-2025]}