7stud -- wrote:
> arr.each_with_index do |elmt, i|
>   if elmt == 2
>     arr.delete_at(i)
>     break
>   end
> end

If you're going that far, why not just

arr.delete_at(arr.index(2))

(Of course that's limited to #== comparisons. Maybe Array#index should 
take a block...)

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407