AssociationQ

AssociationQ[expr]

如果 expr 是有效的 Association 对象,给出 True,否则为 False.

范例

基本范例  (2)

从规则中构建的 Association 生成一个有效的对象:

有效 Association 对象允许提取给出关键词的数值:

如果自变量不是规则,Association 保持不计算:

无效的 Association 没有特殊属性:

Wolfram Research (2015),AssociationQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AssociationQ.html.

文本

Wolfram Research (2015),AssociationQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AssociationQ.html.

CMS

Wolfram 语言. 2015. "AssociationQ." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AssociationQ.html.

APA

Wolfram 语言. (2015). AssociationQ. Wolfram 语言与系统参考资料中心. 追溯自 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: 22-November-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: 22-November-2024 ]}