Why do Scala immutable HashMap methods return a Map?
- by pau.estalella
Hi all!
I am having problems using the update method of scala.collection.immutable.HashMap.I don't see the reason it returns a Map instead of a HashMap. How do I get a new HashMap with a new key-value pair added?