| changeset 403 | 312c9eb39ad8 |
| parent 379 | 73ad2e018516 |
| 402:72e43cb53c13 | 403:312c9eb39ad8 |
|---|---|
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 => { |