What is the difference between pairs() and ipairs() in Lua?
ipairs() and pairs() are slightly different, as you can see on the manual reference. A less-technical description could be that: ipairs() returns index-value pairs and is mostly used for numeric tables. The non-numeric keys are ignored as a whole, similar to numeric indices less than 1. In addition, gaps in between the indexes lead to … Read more