In some scripts I see:
for i,v in pairs(table) do
--CODE
end
and in other scripts I see:
for i,v in ipairs(table) do
--CODE
end
Just a generic question, what's the difference between pairs and ipairs?
In some scripts I see:
for i,v in pairs(table) do
--CODE
end
and in other scripts I see:
for i,v in ipairs(table) do
--CODE
end
Just a generic question, what's the difference between pairs and ipairs?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
https://www.google.com/webhp?q=site:scriptinghelpers.org+ipairs+and+pairs