local E=require(script.Parent.toSet)local function s(s,...)local c=type(s)assert(c=="\116\097\098\108\101","\101\120\112\101\099\116\101\100 \097 \116\097\098\108\101 \102\111\114 \102\105\114\115\116 \097\114\103\117\109\101\110\116\044 \103\111\116 "..c)local H={}local l=E({...})local K=1 for E=1,#s,1 do if not l[E]then H[K]=s[E]K=K+1 end end return H end return s

local toSet = require(script.Parent.toSet)

local function delete(list, ...)
	local listType = type(list)
	assert(listType == "table", "expected a table for first argument, got " .. listType)
	
	local new = {}
	local removeIndices = toSet({...})
	local index = 1

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

	return new
end

return delete