title: What is the smartest way to copy a Map in Kotlin?
body: <p>I'd like to get a new instance of some Map with the same content but Map doesn't have a built-in <code>copy</code> method. I can do something like this:</p>
  
  <pre><code>val newInst = someMap.map { it.toPair() }.toMap()
  </code></pre>
  
  <p>But it looks rather ugly. Is there any more smarter way to do this?</p>