local v=script.Parent local E=v.Parent local L=require(E.t)local C=L.tuple(L.table,L.callback)local function p(v,E)assert(C(v,E))local L={}for v,C in pairs(v)do local p=E(v)if p~=nil then L[p]=true end end return L 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