repo.or.cz
/
lua.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Imported from ../lua-3.0.tar.gz.
[lua.git]
/
test
/
array.lua
blob
48c28576ee870f12fcc7b3f04c0a42a93b3195f8
1
$debug
2
3
a
= {}
4
5
local
i
=
0
6
while
i
<
10
do
7
a
[
i
] =
i
*
i
8
i
=
i
+
1
9
end
10
11
local
r
,
v
=
next
(
a
,
nil
)
12
while
r
~=
nil do
13
write
(
"array["
,
r
,
"] = "
,
v
,
"
\n
"
)
14
r
,
v
=
next
(
a
,
r
)
15
end