diff -r c5ca7f8e21a5 -r 114a89518aea testing1/alcohol.scala --- a/testing1/alcohol.scala Fri Nov 17 14:11:58 2017 +0000 +++ b/testing1/alcohol.scala Tue Nov 21 16:31:11 2017 +0000 @@ -28,7 +28,6 @@ val alcs = get_csv_page(url_alcohol) val pops = get_csv_file(file_population) - def process_alcs(lines: List[String]) : List[(String, Double)] = for (l <- lines) yield { val entries = l.split(",").toList @@ -42,6 +41,9 @@ }).toMap +process_alcs(alcs.drop(1))(1) +process_pops(pops.drop(1))("Albania") + def sorted_country_consumption() : List[(String, Long)] = { val alcs2 = process_alcs(alcs.drop(1)) val pops2 = process_pops(pops.drop(1))