/* * call-seq: * dvector.where_last_eq(number) -> int or nil * * Returns the index of the last entry in _dvector_ with value equal _number_, <code>nil</code> if * _dvector_ has no such entry. * * a = Dvector[ 1, 2, -3, 4, -5, 4, 3, -5, 2 ] * a.where_last_eq(2) -> 8 * a.where_last_eq(5) -> nil * Dvector[].where_last_eq(0) -> nil */ VALUE dvector_where_last_eq(VALUE ary, VALUE item) {