title: Kotlin Is there a way to flatten Map<K out T , List<V out T> to List<T>
body: <p>I would like to transform the Map to List</p>
  
  <p>e.g I have</p>
  
  <pre><code>mapOf("a" to listOf(1,2),
        "b" to listOf(3,4)
  )
  </code></pre>
  
  <p>I want the result to be</p>
  
  <pre><code>listOf("a", 1, 2, "b", 3, 4)
  </code></pre>
  
  <p>order must be Key and its Values, Key and its Values, ...</p>
  
  <p>is there some function in kotlin that could help me with that?</p>