title: How to iterate scala map?
body: <p>I have scala map:</p>
  
  <pre><code>attrs: Map[String , String]
  </code></pre>
  
  <p>When I try to iterate over map like;</p>
  
  <pre><code>attrs.foreach { key, value =&gt;     }
  </code></pre>
  
  <p>the above does not work. In each iteration I must know what is the key and what is the value. What is the proper way to iterate over scala map using scala syntactic sugar?</p>