Pete Yandell wrote:
> Your solution is broken. It'll delete any string from the array:
> 
> irb(main):001:0> a = [1, 2, 'a', 'b']
> => [1, 2, "a", "b"]
> irb(main):002:0> a.delete_if {|x| x =~ /$/}
> => [1, 2]
> Pete Yandell
> http://notahat.com/
Thanks! I was beginning to think I was the only one seeing that 
behaviour. I feel much better now.

-- 
Posted via http://www.ruby-forum.com/.