/* * call-seq: * dvector.reverse_each_index {|index| block } -> array * * Same as <code>Dvector#reverse_each</code>, but passes the index of the element * instead of the element itself. * * a = Dvector[ 1, 0, -1 ] * a.reverse_each_index {|i| print i, " -- " } * * produces: * * 2 -- 1 -- 0 -- */ VALUE dvector_reverse_each_index(VALUE ary) {