is an option to TextString and related functions that determines how associations are formatted.
AssociationFormat
is an option to TextString and related functions that determines how associations are formatted.
Details
- AssociationFormat->{"left","sep","right","arrow"} specifies that associations should be formatted as the delimiter "left", followed by entries in the association separated from each other by "sep", followed by the delimiter "right". Each key->value pair is formatted as key, followed by "arrow", followed by value.
- AssociationFormat->Automatic indicates that the specification {"<|",", ","|>"," -> "} should be used, which corresponds to the ordinary syntax of associations in the Wolfram Language.
Examples
Basic Examples (1)
TextString[<|"first" -> 1, "second" -> 2, "third" -> 3|>, AssociationFormat -> Automatic]TextString[<|"first" -> 1, "second" -> 2, "third" -> 3|>, AssociationFormat -> {"{
", ",
", "
}", ": "}]TextString[<|"first" -> 1, "second" -> 2, "third" -> 3|>, AssociationFormat -> {"[ ", "; ", " ]", " = "}]See Also
History
Text
Wolfram Research (2014), AssociationFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/AssociationFormat.html.
CMS
Wolfram Language. 2014. "AssociationFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AssociationFormat.html.
APA
Wolfram Language. (2014). AssociationFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AssociationFormat.html
BibTeX
@misc{reference.wolfram_2026_associationformat, author="Wolfram Research", title="{AssociationFormat}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/AssociationFormat.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_associationformat, organization={Wolfram Research}, title={AssociationFormat}, year={2014}, url={https://reference.wolfram.com/language/ref/AssociationFormat.html}, note=[Accessed: 13-June-2026]}