Doubly-linked list/Element insertion: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way) |
|||
Line 717: | Line 717: | ||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
see [[Doubly-linked_list/Definition#Lua]] |
see [[Doubly-linked_list/Definition#Lua]] |
||
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
|||
<lang Mathematica>ds = CreateDataStructure["DoublyLinkedList"]; |
|||
ds["Append", "A"]; |
|||
ds["Append", "B"]; |
|||
ds["Append", "C"]; |
|||
ds["SwapPart", 2, 3]; |
|||
ds["Elements"]</lang> |
|||
{{out}} |
|||
<pre>{"A", "C", "B"}</pre> |
|||
=={{header|Nim}}== |
=={{header|Nim}}== |