How to wipe or reset a table in Lua -


how go wiping or resetting table in lua. want make blank table in end.

you iterate on keys , make them nil.

for k,v in pairs(t)   t[k] = nil end 

if it's array remove values table.remove()


Comments

Popular posts from this blog

c# - Outlook Add-in,group emails based on color category -

PHP: Exploding array elements -

javascript - Checkbox in firefox extension -