Scala: Map (Introduction / common method of example)

Map immutable    length, content is not changed the default

Map of variable        length are variable content packets must be turned

Create a map

Contains (Map of the existence of this element)

Gets the element

Gets the element does not exist return getOrElse

Guess you like

Origin blog.csdn.net/drl_blogs/article/details/91561403