Beginner Question: Given a list repeat each element of the list n times ... def f(num:Int,arr:List[Int]):List[Int] = arr flatMap(e => for(i <- 1 to num) ...
確定! 回上一頁