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