Singly-linked list/Element definition: Difference between revisions

Content deleted Content added
added scheme
Line 241: Line 241:
node = node.next
node = node.next
</pre>
</pre>
(Note that in Python you would always use the built-in list structure for this task, except for the specific case, such as this, when you are asked to show how you might implement the function without using the list type).


=={{header|Ruby}}==
=={{header|Ruby}}==