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:
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