Anonymous user
Associative array/Iteration: Difference between revisions
no edit summary
m (→{{header|Nim}}) |
No edit summary |
||
Line 1,087:
Ruby invented by: Matsumoto, Yukihiro
count: 10
</pre>
=={{header|Gambas}}==
<lang gambas>Public Sub Main()
Dim cList As Collection = ["2": "quick", "4": "fox", "1": "The", "9": "dog", "7": "the", "5": "jumped", "3": "brown", "6": "over", "8": "lazy"]
Dim siCount As Short
For siCount = 1 To cList.Count
Print cList[Str(siCount)];;
Next
End</lang>
Output:
<pre>
The quick brown fox jumped over the lazy dog
</pre>
|