I want to be able to write:
开发者_Go百科val a = Array(1,2,3)
println(a.toString)
And have a meaningfull printout. Is it possible?
You have to do this:
scala> val a = Array(1, 2, 3)
a: Array[Int] = Array(1, 2, 3)
scala> println(a.deep)
Array(1, 2, 3)
scala>
精彩评论