is the + in += on a Map a prefix operator of =?
- by Steve
In the book "Programming in Scala" from Martin Odersky there is a simple example in the first chapter:
var capital = Map("US" -> "Washington", "France" -> "Paris")
capital += ("Japan" -> "Tokyo")
The second line can also be written as
capital = capital + ("Japan" -> "Tokyo")
I am curious about the += notation. In the class Map, I…