Singly-linked list/Traversal: Difference between revisions

Content added Content deleted
m (added whitespace before the table of contents (TOC).)
(added MiniScript comments)
Line 950: Line 950:


=={{header|MiniScript}}==
=={{header|MiniScript}}==
We're choosing here to use the built-in list type, rather than make our own from scratch, since this is more representative of how one is likely to actually use MiniScript.
<lang MiniScript>list = [2, 4, 6, 8]
<lang MiniScript>myList = [2, 4, 6, 8]
for i in list
for i in myList
print i
print i
end for</lang>
end for</lang>