scala 统计计算
scala> List(1, 2, 3, 4, 5, 5, 6, 7, 8, 9)res30: List[Int] = List(1, 2, 3, 4, 5, 5, 6, 7, 8, 9)scala> List(1, 2, 3, 5, 5, 5, 6, 6,6,6,6, 7,7,7, 8, 9)res31: List[Int] = List(1, 2, 3, 5, 5, 5, 6, 6...