Doubly-linked list/Element definition: Difference between revisions
Content added Content deleted
Line 467: | Line 467: | ||
<lang lua>local node = { data=data, prev=nil, next=nil }</lang> |
<lang lua>local node = { data=data, prev=nil, next=nil }</lang> |
||
=={{header|Mathematica}} |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
Mathematica and the Wolfram Language have no lower-level way of handling pointers. It does have a built-in, compilable doubly-linked list data structure: |
Mathematica and the Wolfram Language have no lower-level way of handling pointers. It does have a built-in, compilable doubly-linked list data structure: |
||
<lang Mathematica>CreateDataStructure["DoublyLinkedList"]</lang> |
<lang Mathematica>CreateDataStructure["DoublyLinkedList"]</lang> |