title: Remove element at given index
body: <p>In Scala, I have an <code>Array[Int]</code> object called <code>elem</code>.</p>
  
  <p>I would like to remove the element at index <code>k</code>.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>elem.filter(! _.equals(elem(k)))
  </code></pre>
  
  <p>However, this removes all elements which are equal to <code>elem(k)</code>.</p>
  
  <p>How could I remove only the element at the index <code>k</code>?</p>