--- Maps values of an array through a callback and returns an array of mapped values

function Util.Map(array, callback)
	local results = {}

	for i, v in ipairs(array) do
		results[i] = callback(v, i)
	end

	return results
end
