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.

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

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: 21-December-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: 21-December-2024 ]}