Doubly-linked list/Element definition: Difference between revisions
Content added Content deleted
m (→{{header|Lua}}) |
(Add Plain English) |
||
Line 699: | Line 699: | ||
P = P => back_pointer; /* P now points at the previous node. */ |
P = P => back_pointer; /* P now points at the previous node. */ |
||
</lang> |
</lang> |
||
=={{header|Plain English}}== |
|||
When you define a <code>thing</code>, you are defining a record as a doubly-linked list element. <code>next</code> and <code>previous</code> fields are implicitly added to the record that can be used to build and traverse a list. |
|||
<lang plainenglish>An element is a thing with a number.</lang> |
|||
=={{header|Pop11}}== |
=={{header|Pop11}}== |