title: Kotlin: conditional items during map creation
body: <p>Is there a way to do something like this in Kotlin?</p>
  
  <pre><code>mapOf(
     "key1" to var1,
     "key2" to var2,
     if(var3 &gt; 5) "key3" to var3       
  )
  </code></pre>
  
  <p>Or the only way is to add the key "key3" after the map is created?
  I'd like to add an item to a map only if some condition is met.</p>