just read Scala collection implementation and noticed a subtile difference:
- immutable HashMap :
class HashMap[A, +B]()
- mutable HashMap :
class HashMap[A, B]()
Could you please explain me why the immutable's value type is covariant while the mutable's one is not ?
Thanks for your help