function Functional.FoldDictionary(t,i,o)local x=i for t,i in pairs(t)do x=o(x,t,i)end return x end

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
