title: how to iterate through array from the last element in Ruby
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2346166/how-to-iterate-through-an-array-starting-from-the-last-element-ruby">How to iterate through an array starting from the last element? (Ruby)</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to iterate over a list in reverse, but I have not been able to figure it out.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>#!/usr/bin/ruby
  presidents = ["Ford", "Carter", "Reagan", "Bush1", "Clinton", "Bush2"]
  
  for ss in -presidents.length...0
      print  ": ", presidents[ss], "\n";
  end
  </code></pre>