Doubly-linked list/Element definition: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Rewrote this as the task is about element definition rather than the definition of the doubly-linked list itself.) |
(add freebasic) |
||
Line 265: | Line 265: | ||
! |
! |
||
type( node ), target :: head</lang> |
type( node ), target :: head</lang> |
||
=={{header|FreeBASIC}}== |
|||
<lang freebasic>type node |
|||
nxt as node ptr |
|||
prv as node ptr |
|||
dat as any ptr 'points to any kind of data; user's responsibility |
|||
'to keep track of what's actually in it |
|||
end type</lang> |
|||
=={{header|Go}}== |
=={{header|Go}}== |