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.

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 range 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:

Introduced in 2020
 (12.1)