main_testing2/danube_test5.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               m: Map[String, List[String]]) : Map[String, List[String]] = ratings match {
     7               m: Map[String, List[String]]) : Map[String, List[String]] = ratings match {
     8   case Nil => m
     8   case Nil => m
     9   case (id, mov) :: rest => {
     9   case (id, mov) :: rest => {