lua-users home
lua-l archive

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


On Tuesday 12 September 2006 5:17 pm, Nick Gammon wrote:
> I want to delete all elements from a table (any sort of keys, not
> just numeric).

this is what i usually do:

while next (t) do
	t[next(t)]=nil
end

-- 
Javier

Attachment: pgpI6x5WEqDWk.pgp
Description: PGP signature