Originally Posted by Khaibit
From what I understand, ipairs only works with "well-formed" tables (i.e. sequential indices without any gaps, 1-indexed). Your table is missing index 5, which is why ipairs stops there.
|
Now that you mentioned it I looked up the definition. It appears like "ipairs" for really only is a short version of "for i=1, #table, 1 do":
http://www.luafaq.org/#T1.10
Looks like the source that originally pointed me to ipairs was not precise enough in representing what it cannot do.