lua-users home
lua-l archive

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


> table.insert(t, 1)
> table.insert(t, nil)
> table.insert(t, 3)

why not just?

t[1] = 1
t[3] = 3

I think we've become accustomed to table.insert(t,nil) being a no-op...

steve d.