DataStructureQ

DataStructureQ[ds]

如果 ds 是有效的数据结构,给出 True,否则给出 False.

DataStructureQ[ds,type]

如果 ds 是有效的指定类型的数据结构,给出 True,否则给出 False.

范例

基本范例  (1)

创建堆栈实例:

测试是否为有效的数据结构:

测试是否为有效的堆栈:

测试是否为链表:

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

文本

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

CMS

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

APA

Wolfram 语言. (2020). DataStructureQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DataStructureQ.html 年

BibTeX

@misc{reference.wolfram_2024_datastructureq, author="Wolfram Research", title="{DataStructureQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/DataStructureQ.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_datastructureq, organization={Wolfram Research}, title={DataStructureQ}, year={2020}, url={https://reference.wolfram.com/language/ref/DataStructureQ.html}, note=[Accessed: 18-November-2024 ]}