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.1.tar.gz.
[lua.git]
/
test
/
array.lua
blob
728a0b279f3b389147518f1cdea9a5b910b5d831
1
a
= {}
2
3
local
i
=
0
4
while
i
<
10
do
5
a
[
i
] =
i
*
i
6
i
=
i
+
1
7
end
8
9
local
r
,
v
=
next
(
a
,
nil
)
10
while
r
~=
nil do
11
write
(
"array["
,
r
,
"] = "
,
v
,
"
\n
"
)
12
r
,
v
=
next
(
a
,
r
)
13
end