When you display a Vector:
val vector = Vector(1, 2, 3) println(vector) // prints “Vector(1, 2, 3)”
val vector = Vector(1, 2, 3)
println(vector) // prints “Vector(1, 2, 3)”
It prints in the same form as the initialization expression.
That makes me happy.
(from Atomic Scala, pp.109)
No comments:
Post a Comment