title: copy contents of immutable map to new mutable map
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5042878/how-can-i-convert-immutable-map-to-mutable-map-in-scala">How can I convert immutable.Map to mutable.Map in Scala?</a>  </p>
  </blockquote>
  
  
  
  <p>How do I create a new mutable map with the contents of the immutable map in Scala? </p>
  
  <p>So far I have tried: </p>
  
  <pre><code>val m:scala.collection.mutable.Map[Int, Double] = scala.collection.mutable.Map[Int, Double](imm.map({case(key, value) =&gt; (key -&gt; value) }))
  </code></pre>
  
  <p>to no avail.</p>