--[[
	Takes a list and returns a table whose
	keys are elements of the list and whose
	values are all true
]]

local function membershipTable(list)
	local result = {}
	for i = 1, #list do
		result[list[i]] = true
	end
	return result
end

