local function p(p)local d=type(p)assert(d=="\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 "..d)local T={}for d=1,#p,1 do T[p[d]]=true end return T end return p

local function toSet(list)
	local listType = type(list)
	assert(listType == "table", "expected a table for first argument, got " .. listType)
	
	local set = {}

	for i = 1, #list do
		set[list[i]] = true
	end
	
	return set
end

return toSet