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
22
33 a = {}
44
5−i=0
5+local i=0
66 while i<10 do
77 a[i] = i*i
88 i=i+1
99 end
1010
11−r,v = next(a,nil)
11+local r,v = next(a,nil)
1212 while r ~= nil do
13− print ("array["..r.."] = "..v)
13+ write ("array[",r,"] = ",v,"\n")
1414 r,v = next(a,r)
1515 end