Skip to content

Instantly share code, notes, and snippets.

@p3t0r
Created March 11, 2009 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p3t0r/77510 to your computer and use it in GitHub Desktop.
Save p3t0r/77510 to your computer and use it in GitHub Desktop.
import scala.collection.mutable.Map
val phonebook = Map("peter" -> "12345")
phonebook += ("henk" -> "12300") // adds, but doesn't re-assign
println(phonebook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment