Loading...
write something about Scala collection functionThe first is map functionan easiest test :def plusOne(x:Int):Int = x+1 val list1:List[Int] = List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) println(list1.map(...