blob: ab3e3cf53d12267360b713f7a567114950685e89 (
plain) (
tree)
|
|
object Test {
def f = {
val buf = new collection.mutable.ListBuffer[Int]
buf ++= List(1, 2, 3)
val l = buf.toList
buf prependToList List(4, 5, 6)
l
}
def main(args: Array[String]): Unit = {
println(f)
}
}
|