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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -