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
3a = @()
4
5i=0
6while i<10 do
7 a[i] = i*i
8 i=i+1
9end
10
11r,v = next(a,nil)
12while r ~= nil do
13 print ("array["..r.."] = "..v)
14 r,v = next(a,r)
15end