lua-users home
lua-l archive

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


On 22/10/2023 11:52, Hans van der Meer wrote:
Of course I can do:
for k,v in pairs(t) do
if not tonumber(k) then ... end
end


This is not that simple. It won't work for a table like this:
{ [5]=27; [3.75]="foobar" }

--
Shmuel