local I=script.Parent local t=I.Parent local c=require(t.t)local Z=c.tuple(c.table,c.integer)local function s(I,t)assert(Z(I,t))local c=#I if t<1 then t+=c end assert(t>0 and t<=c,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",t,c))local s={}local J=1 for I,c in ipairs(I)do if I~=t then s[J]=c J+=1 end end return s end return s
local List = script.Parent

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

local validate = t.tuple(t.table, t.integer)

local function removeIndex(list, indexToRemove)
	assert(validate(list, indexToRemove))

	local len = #list

	if indexToRemove < 1 then
		indexToRemove += len
	end

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

	local new = {}
	local index = 1

	for i, v in ipairs(list) do
		if i ~= indexToRemove then
			new[index] = v
			index += 1
		end
	end

	return new
end

return removeIndex