Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
items = [items(:,i-1), items(j:)]
items needs to be an allocatable array. It is reallocated on assignment to a constructor containing the elements from the start of the array to i-1 and from j to the end.
items.removeAll(items.subList(i, j));
local function erase(t,i,j)
for i=1,j-1 do
t[i]=nil
end
end
erase(items,i,j)
for index := j-1 downto i do
items.delete(index);
items[i:j] = []
del items[i:j]
s = slice(i, j)
items[s] = []