History

Lua 1.1

Lua Team committed 32 years ago

Commit 6a0a9ef1 parent 8fa4b5556 files · +6975 −3402Browse files

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

Unified · Split

test/array.lua+15−0
@@ -0,0 +1,15 @@
1+$debug
2+
3+a = @()
4+
5+i=0
6+while i<10 do
7+ a[i] = i*i
8+ i=i+1
9+end
10+
11+r,v = next(a,nil)
12+while r ~= nil do
13+ print ("array["..r.."] = "..v)
14+ r,v = next(a,r)
15+end