lua-users home
lua-l archive

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


How does one iterate over all the keys of a table _except_
the ones that ipairs would reach?

Unsuccessful attempts so far:

for k,v in pairs(t) do if not tonumber(k) then ...

for k,v in pairs(t) do if type(k)!='number' then ...

for k,v in pairs(t) do if type(k)!=number or k>#t then ...

for k,v in hpairs(t) do ...

Dirk