Doubly-linked list/Traversal: Difference between revisions

Content added Content deleted
m (PL/I code moved to its correct alphabetical position.)
m (→‎{{header|Go}}: note library implementation)
Line 521: Line 521:
=={{header|Go}}==
=={{header|Go}}==
Code is identical to that for task Doubly-linked list/Element insertion except for addition of section at the end of main noted "traverse from end to beginning." Traversal from beginning to end is adequately demonstrated by the String method of dlList.
Code is identical to that for task Doubly-linked list/Element insertion except for addition of section at the end of main noted "traverse from end to beginning." Traversal from beginning to end is adequately demonstrated by the String method of dlList.

Also note that there is a doubly linked list in the Go standard library in package container/list.
<lang go>package main
<lang go>package main