Bugs item #9250, was opened at 2007-03-13 03:38 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9250&group_id=426 Category: Core Group: 1.8.5 Status: Open Resolution: None Priority: 3 Submitted By: Michael Hu (pwp) Assigned to: Nobody (None) Summary: "each" function failed to detect element delete then jump a valid element when next yield. Initial Comment: "each" function failed to detect element delete then jump a valid element when next yield. ----sample code---- a=[1,2,3] a.each do |b| a.delete b if b==1 puts b end ---- ---output--- 1 3 ----- ---correct output---- 1 2 3 ----- ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9250&group_id=426