title: How do I remove an element from an array at a specified index but not do the operation in-place
body: <p>Ruby 2.4.  I want to create a new array by removing an element at a specified index from an array.  I thought <code>delete_at</code> was the way, but it performs in-place and doesn't return the newly created array, but rather, the element that was removed:</p>
  
  <pre><code>2.4.0 :003 &gt; a = ["a", "b", "c"]
   =&gt; ["a", "b", "c"]
  2.4.0 :004 &gt; a.delete_at(0)
   =&gt; "a"
  2.4.0 :005 &gt; a
   =&gt; ["b", "c"]
  </code></pre>
  
  <p>How do I delete an element from an array at a specified index but not perform the operation in place?</p>