1 2 3 4 5 6
import collection.mutable._ object Test extends App { val x: ArrayBuffer[String] = ArrayBuffer("a", "b", "c") x.view map (_ + "0") foreach println }