Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the difference between pairs and ipairs?

I know they are both generic loops, I believe? However, what is the difference? Maybe an example? Many thanks!

1 answer

✓ Accepted answer

ipairs only iterates over numerical index, pairs iterates over all the table.

This discussion is preserved as it was. New answers, comments, and votes are closed.