Topic | Map and Set |
---|---|
Git Sample |
In Scala Set and Maps can be mutable or immutable, depends upon which one we imported to our class. by default it would be immutable. to use Mutable maps you can import import scala.collection.mutable.Map
, while to create mutable set import scala.collection.mutable.Set