title: Groovy remove Collection item while iterating
body: <p>Is there a Groovy way of removing a Collection's item while iterating? In Java this is accomplished using <code>Iterator.remove()</code>:</p>
  
  <pre><code>Collection collection = ...
  for (Iterator it=collection.iterator(); it.hasNext(); ) {
      Object obj = it.next();
      if (should remove) {
          it.remove();
      }
  }
  </code></pre>
  
  <p>Does Groovy provide remove-while-iterating in its language syntax, or do I have do use <code>Iterator.remove()</code>?</p>