Are there any differences between in ipairs
and in pairs
?
What?
a = {1, "b", 3, "d"}
for i, v in pairs(a) do print(i, v) end
print("Ipairs")
for i, v in ipairs(a) do print(i, v) end
Return:
1 1
2 b
3 3
4 d
Ipairs
1 1
2 b
3 3
4 d