Doubly-linked list/Element definition: Difference between revisions
Doubly-linked list/Element definition (view source)
Revision as of 19:02, 25 June 2021
, 2 years ago→{{header|Mathematica}} / {{header|Wolfram Language}}
Line 467:
<lang lua>local node = { data=data, prev=nil, next=nil }</lang>
=={{header|Mathematica}}
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>
|