main_marking2/danube_test5.scala
changeset 424 daf561a83ba6
parent 389 4113d4d8cf62
equal deleted inserted replaced
423:e9d14d58be3c 424:daf561a83ba6
     1 
     1 
     2 // first test 
     2 // first test 
     3 
     3 
     4 import CW7b._
     4 import M2._
     5 
     5 
     6 def urban_groupById(ratings: List[(String, String)]) = 
     6 def urban_groupById(ratings: List[(String, String)]) = 
     7   ratings.groupBy(_._1).view.mapValues(_.map(_._2)).toMap 
     7   ratings.groupBy(_._1).view.mapValues(_.map(_._2)).toMap 
     8 
     8 
     9 def urban_get_csv_file(name: String) : List[String] = {
     9 def urban_get_csv_file(name: String) : List[String] = {