I would prefer this solution for its clarity of expression.
Me too I just think the #inject won on the neat-o factor,
particularly since it seemed adequate for the OP.
Partly yes and partly no: apart from the cute factor, there is a real advantage of the inject solutions show: they work for *all* Enumerables while the array indexing works only for arrays. So #inject is more general. Also, Array# creates a new array instance along the way which is a bit inefficient. But I do agree that the indexing might be more readable.