local I=script.Parent local t=I.Parent local c=require(t.t)local Z=c.table local s=c.integer local function J(I,...)assert(Z(I))local t=#I local c={}for I=1,select("\035",...),1 do local Z=select(I,...)assert(s(Z))if Z<1 then Z=t+Z end assert(Z>0 and Z<=t,string.format("\105\110\100\101\120 \037\100 \111\117\116 \111\102 \098\111\117\110\100\115 \111\102 \108\105\115\116 \111\102 \108\101\110\103\116\104 \037\100",Z,t))c[Z]=true end local J={}local r=1 for t=1,t,1 do if not c[t]then J[r]=I[t]r=r+1 end end return J end return J
local List = script.Parent

local Llama = List.Parent
local t = require(Llama.t)

local validateList = t.table
local validateIndex = t.integer

local function removeIndices(list, ...)
	assert(validateList(list))

	local len = #list
	local indicesToRemove = {}

	for i = 1, select('#', ...) do
		local index = select(i, ...)
		
		assert(validateIndex(index))

		if index < 1 then
			index = len + index
		end

		assert(index > 0 and index <= len, string.format("index %d out of bounds of list of length %d", index, len))

		indicesToRemove[index] = true
	end
	
	local new = {}
	local index = 1

	for i = 1, len do
		if not indicesToRemove[i] then
			new[index] = list[i]
			index = index + 1
		end
	end

	return new
end

return removeIndices