title: Removing multiple elements from array by index in Ruby
body: <p>I have an array. For example,</p>
  
  <pre><code>x = [1,2,3,4,5]
  </code></pre>
  
  <p>I know the command</p>
  
  <pre><code>x.delete_at(i)
  </code></pre>
  
  <p>will delete the element at index <em>i</em> from the array. But from what I've read, it can only handle one argument.</p>
  
  <p>Let's say I have a variable that stores the indexes I wish to remove from <em>x</em>. For example,</p>
  
  <pre><code>y = [0,2,3]
  </code></pre>
  
  <p>My question: <strong>Is it possible to remove multiple elements from an array using another array that stores in the indexes you wish to delete at?</strong></p>
  
  <p>In essence, something like</p>
  
  <pre><code>x.delete_at(y)
  </code></pre>
  
  <p>Thanks! :)</p>