I understand that ++= is used for appending one List to another. However, when the appending List is itself it does not seem to work. when I run this code:
var a = ListBuffer[Int](1, 2, 3)
a ++= a
println(a)
the program seems to stuck in a infinite loop and never stop.