On Mon, Aug 25, 2008 at 7:54 AM, David A. Black <dblack / rubypal.com> wrote:
> On Mon, 25 Aug 2008, Patrick Doyle wrote:
>> I'm sure there is some simple elegant way to do this, but I can't figure
>> it out.
>
> Try this:
>
> (0...a.size).reject {|i| a[i].nil? }
>
Ahhh -- that's the simple elegant way for which I was searching.  I
kept going down the path of a.each_index and didn't like where that
was going.

--wpd