History

Lua 3.0

Lua Team committed 29 years ago

Commit 9bc113c1 parent 100a7f178 files · +6569 −11586Browse files

Showing the changes to test/array.lua (1 of 78 files). Show all

Unified · Split

test/array.lua+3−3
@@ -2,14 +2,14 @@ $debug · 1 unmodified line
2 2
3a = {}3a = {}
4 4
5i=05local i=0
6while i<10 do6while i<10 do
7 a[i] = i*i7 a[i] = i*i
8 i=i+18 i=i+1
9end9end
10 10
11r,v = next(a,nil)11local r,v = next(a,nil)
12while r ~= nil do12while r ~= nil do
13 print ("array["..r.."] = "..v)13 write ("array[",r,"] = ",v,"\n")
14 r,v = next(a,r)14 r,v = next(a,r)
15end 15end