lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 26, 2010 at 4:52 PM, Duncan Cross <duncan.cross@gmail.com> wrote:
> But next() is irrelevant to ipairs(). The point is that, in an
> ipairs() loop, if you use table.remove() to remove an element from the
> table at the current (or previous) index, the next loop iteration will
> appear to have "skipped over" an element. For example:

Oops, my bad. didn't check the repeated-value case ....