[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Deleting all elements from a table
- From: roberto@... (Roberto Ierusalimschy)
- Date: Wed, 13 Sep 2006 19:06:17 -0300
> local k= next(t)
> while k ~= nil do
> t[k]= nil
> k= next(t)
> end
It may be worth remembering that the above loop is quadratic in time.
-- Roberto