From: james.d.masters@... Date: 2007-03-17T07:05:05+09:00 Subject: Re: Issues using array.delete within a loop of the same array On Mar 16, 2:01 pm, Timothy Hunter wrote: > Use #delete_if instead. Thanks - I tried that and it also did not work. Sorry for not posting this attempt in my original: irb(main):001:0> a = [1,2,3,4,5] => [1, 2, 3, 4, 5] irb(main):002:0> a.each {|e| a.delete_if {|e2| e2 == e}} => [2, 4]