Singly-linked list/Element definition: Difference between revisions

(added scheme)
Line 241:
node = node.next
</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}}==
Anonymous user