title: What is the syntax for adding an element to a scala.collection.mutable.Map?
body: <p>What is the syntax for adding an element to a <code>scala.collection.mutable.Map</code> ?</p>
  <p>Here are some failed attempts:</p>
  <pre><code>val map = scala.collection.mutable.Map
  
  map(&quot;mykey&quot;) = &quot;myval&quot;
  
  map += &quot;mykey&quot; -&gt; &quot;myval&quot;
  
  map.put(&quot;mykey&quot;,&quot;myval&quot;)
  </code></pre>