Robert Klemme wrote:
> 2006/4/20, Peter Szinek <peter / rt.sk>:
>>> items.each do |x|
>>>       if x == ""
>>>               items.delete(x)
>>>       end
>>> end
> Not exactly true. This special scenario is well covered by Java:
I stand corrected. I had so many problems with similar 
iterate-but-dont-touch scenarios in J that i threw remove() in the same 
bag automatically ;-).

Anyway, i agree that iterating and deleting  is not a good idea...

Cheers,
Peter