lua-users home
lua-l archive

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


> 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