--[[
	Identical to Map, except that the result will be reversed.
]]

function Functional.MapReverse(list, callback)
	local new = {}

	for key = #list, 1, -1 do
		new[key] = callback(list[key], key)
	end

	return new
end
