From: Bil Kleb Date: 2009-07-03T03:35:09+09:00 Subject: Re: delete_if_with_index or delete_at(array) in 1.8.6? David A. Black wrote: > In 1.8 I'm not coming up with anything more elegant than: > >>> a.values_at(*(0...a.size).reject {|i| a[i] < i }) > => [0, 1, 2, 4, 6, 7] Nice. -- http://twitter.com/bil_kleb