title: Kotlin basics: how to add or set an element of a Map?
body: <p>I'd like to add/set elements of a mutable map with specific key-value pairs.
  So far, I figured out that I can can add new elements using the plus operator along with the Pair data type:</p>
  
  <pre><code>var arr3:Map&lt;Any, Any&gt; = mutableMapOf()
  arr3 += Pair("manufacturer", "Weyland-Yutani")
  //also, the "to" operator works too:
  //arr3 += ("manufacturer" to "Weyland-Yutani")
  </code></pre>
  
  <p>However, I couldn't find out how to modify or add new key-value pairs:</p>
  
  <pre><code>arr3["manufacturer"] = "Seegson"  // gives an error( Kotlin: No set method providing array access)
  arr3["manufacturer"] to "Seegson" // compiles, but nothing is added to the array
  </code></pre>
  
  <p>Could you please elaborate me how to do that?</p>