title: Idiomatic way to transform map in kotlin?
body: <p>In Scala, it's just the <code>map</code> function. For example, if hashMap is a hashMap of strings, then you can do the following:</p>
  
  <pre><code>val result : HashMap[String,String] = hashMap.map(case(k,v) =&gt; (k -&gt; v.toUpperCase))
  </code></pre>
  
  <p>In Kotlin, however, <code>map</code> turns the map into a list. Is there an idiomatic way of doing the same thing in Kotlin?</p>