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