AssociationFormat

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)

Use default formatting:

Specify alternate formatting:

Wolfram Research (2014), AssociationFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/AssociationFormat.html.

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_2024_associationformat, author="Wolfram Research", title="{AssociationFormat}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/AssociationFormat.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

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