DataStructure

Listing of Data Structures »

DataStructure["type",data]

represents a data structure.

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.
  • Information for a DataStructure may include the following properties:
  • "Type"data structure type
    "Operations"operations or methods of the DataStructure
    "Functions"functions that can be applied to a DataStructure

Examples

open allclose all

Basic Examples  (1)

Create an instance of a linked list:

An expression form of the data structure can be generated by InputForm:

The expression form can be used to recreate the data structure:

Scope  (2)

Information  (1)

Create a bit vector data structure:

Get information about the data structure:

Get the type of the data structure:

Get the capacity for this bit vector data structure:

List the operations available to this data structure:

List the functions available to this data structure:

Pattern Matching  (1)

Create a linked list data structure:

A function that accepts any data structure:

A function that accepts a linked list:

The function does not accept a stack:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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