DataStructureQ

DataStructureQ[ds]

yields True if ds is a valid data structure and False otherwise.

DataStructureQ[ds,type]

yields True if ds is a valid data structure of the specified type and False otherwise.

Examples

Basic Examples  (1)

Create an instance of a stack:

Test that this is a valid data structure:

Test that this is a valid stack:

Test that this is not a linked list:

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

Text

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2021_datastructureq, organization={Wolfram Research}, title={DataStructureQ}, year={2020}, url={https://reference.wolfram.com/language/ref/DataStructureQ.html}, note=[Accessed: 22-September-2021 ]}

CMS

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

APA

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