Is in pairs the same thing as ipairs ??
✓ ANSWER ACCEPTED
Are in pairs, and ipairs the same thing?
1 answer
✓ Accepted answer
No
lol = {'d','e',nil,'lol'}
for i,v in pairs(lol) do
print(v)
end
--this would print all 4 including nil while if you did in ipairs it would stop at nil
http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions#pairs
http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions#ipairs
This discussion is preserved as it was. New answers, comments, and votes are closed.
