title: What is the best way to add an element to the beginning of a list in Kotlin
body: <p>If I have a list like this one</p>
  
  <pre><code> var foo = mutableListOf("John", "Wayne")
  </code></pre>
  
  <p>and if I want to add an element on top of the list, so far I am thinking of two options.</p>
  
  <p>First: <code>foo.add(0, "Twyla")</code></p>
  
  <p>Second: <code>foo = (mutableListOf("Twyla") + foo).toMutableList()</code></p>
  
  <p>I am not how the above two options fare in terms of performance but what is a recommended way in general?</p>