# Turn a dictionary of currencies (e.g. "USD"=>"name"=>"United States dollar","symbol"=>"$") into a vector of strings. function currencies_from_dict(dict::Dict) return [string(v["name"], " (", get(v, "symbol", "?"), ")") for (_, v) in dict] end
Wraps a `CountryInfo` together with some derived metrics. """ struct CountryReport info::CountryInfo density::Float64 # pop / km² gdp_per_capita::UnionMissing,Float64 economic_weight::UnionMissing,Float64 end julia pais anal
return CountryReport(info, density, gdp_per_capita, econ_weight) end # Turn a dictionary of currencies (e
println("\n--- Country analysis demo ------------------------------------------------\n") "United States dollar"
""" CountryReport