Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function table.removeMany(t, i, j)
- j = j or #t
- local offset = j - i
- for n=j+1, #t do
- t[n - offset] = t[n]
- end
- for n = #t - offset, #t do
- t[n] = nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement