O'Reilly logo
  • Syed Quader thinks this is interesting:

 import scala.collection.mutable
  val movieSet = mutable.Set("Hitch""Poltergeist")   movieSet += "Shrek"   println(movieSet) 

From

Cover of Programming in Scala, Third Edition

Note

We are adding to the movieSet but movieSet pointer is not changing.