local O=script.Parent local n=O.Parent local t=require(n.t)local U=t.tuple(t.table,t.callback)local function P(O,n)assert(U(O,n))local t={}for O,U in pairs(O)do local P=n(O)if P~=nil then t[P]=true end end return t end return P
local Set = script.Parent

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

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

local function map(set, mapper)
	assert(validate(set, mapper))

	local new = {}

	for key, _ in pairs(set) do
		local newKey = mapper(key)

		if newKey ~= nil then
			new[newKey] = true
		end
	end

	return new
end

return map