main_testing2/danube_test4.scala
changeset 403 ffce7b61b446
parent 379 5616b45d656f
equal deleted inserted replaced
402:de59aa20a1dc 403:ffce7b61b446
     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] = {