lua-users home
lua-l archive

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



On Aug 17, 2014, at 8:10 PM, Thiago L. <fakedme@gmail.com> wrote:

local i = 1
while t[i] ~= nil do
 local v = t[i]
 -- do some stuff here
 i = i+1
end

(Also faster than using ipairs())

So use this then. Deep down, the redefinition of ipairs() is really about the redefinition of a sequence.

—Tim