CreateDataStructure

Listing of Data Structures »

CreateDataStructure["type",arg1,arg2,]

creates a data structure with the specified type.

Details

  • Data structures are built with the Wolfram Compiler.
  • Data structures provide efficient operations for holding and manipulating data.
  • Certain data structures provide mutable operations in the Wolfram Language.

Examples

Basic Examples  (1)

Create an instance of an array that grows dynamically:

Appending is efficient:

Element extraction is efficient:

Element updating is efficient:

This returns the normal expression form:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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