1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
tableA = {"My", "name", "is", "Mello"}
Mello = {age = 18, height = 179, brothers = 1, sisters = 0}
for index, content in ipairs(tableA) then
	print(index.."."..content)
end
print "1st"
for index, content in ipairs(Mello) then
	print(index.."."..content)
end
print "2nd"
--[[
	This would return something like:
		2.name
		1.My
		4.Mello
		3.is
		1st
		2nd
--]]
for index, content in pairs(tableA) then
	print(index.."."..content)
end
print "1st"
for index, content in pairs(tableA) then
	print(index.."."..content)
end
print "2nd"
--[[
	This would return something like:
		1.My
		2.name
		3.is
		4.Mello
		1st
		brothers.1
		height.179
		age.18
		sisters.0
		2nd
--]]