On Sat, 2008-03-01 at 10:15 +0900, 7stud -- wrote:
> arr.each_with_index do |elmt, i|
>   if elmt == 2
>     arr.delete_at(i)
>     break
>   end
> end

This won't work in 1.9: "RuntimeError: can't modify array during
iteration".

Best,
Andre