Scala Map is a collection of elements in pairs of key and values, where values can be retrieved using keys. Values are not unique, but the keys are unique. Scala supports two types of maps - mutable and immutable. By default, the language supports the immutable map. You can create a Scala map in two ways – by using comma separated pairs or by rocket operator.

Suggest An Answer

No suggestions avaliable!