lua-users home
lua-l archive

Re: table.remove behavior?

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


Oops, that should have been:
function table.remove(t, ind)
 local next
 repeat
 next = t[ind+1]
 t[ind] = next
 ind = ind+1
 until next==nil
end
-Paul

AltStyle によって変換されたページ (->オリジナル) /