From: Peter Szinek Date: 2006-04-20T18:42:34+09:00 Subject: Re: Array#each Looping Gotcha Robert Klemme wrote: > 2006/4/20, Peter Szinek : >>> 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