local function C(C,Z)local J=type(C)assert(J=="\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 "..J)local N=type(Z)assert(N=="\102\117\110\099\116\105\111\110","\101\120\112\101\099\116\101\100 \097 \102\117\110\099\116\105\111\110 \102\111\114 \115\101\099\111\110\100 \097\114\103\117\109\101\110\116\044 \103\111\116 "..N)local F={}for C,J in pairs(C)do local N,z=Z(J,C)F[z or C]=N end return F end return C

local function map(dictionary, mapper)
	local dictionaryType = type(dictionary)
	assert(dictionaryType == "table", "expected a table for first argument, got " .. dictionaryType)
	
	local mapperType = type(mapper)
	assert(mapperType == "function", "expected a function for second argument, got " .. mapperType)

	local mapped = {}

	for k, v in pairs(dictionary) do
		local value, key = mapper(v, k)
		mapped[key or k] = value
	end

	return mapped
end

return map