AssociationQ

AssociationQ[expr]

gives True if expr is a valid Association object, and False otherwise.

Examples

Basic Examples  (2)

Association constructed from rules yields a valid object:

Valid Association object allows extraction of values given keys:

If arguments are not rules, Association remains unevaluated:

Association that is not valid has no special properties:

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

Text

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

CMS

Wolfram Language. 2015. "AssociationQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AssociationQ.html.

APA

Wolfram Language. (2015). AssociationQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AssociationQ.html

BibTeX

@misc{reference.wolfram_2024_associationq, author="Wolfram Research", title="{AssociationQ}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/AssociationQ.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

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