function Functional.FoldDictionary(Z,e,t)local U=e for Z,e in pairs(Z)do U=t(U,Z,e)end return U end
--[[
	Performs a fold over the entries in the given dictionary.
]]
function Functional.FoldDictionary(dictionary, initial, callback)
	local accum = initial

	for key, value in pairs(dictionary) do
		accum = callback(accum, key, value)
	end

	return accum
end
