title: Why doesn't backward for loop work in ruby? eg. for i in 10..1
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2070574/is-there-a-reason-that-we-cannot-iterate-on-reverse-range-in-ruby">Is there a reason that we cannot iterate on &ldquo;reverse Range&rdquo; in ruby?</a>  </p>
  </blockquote>
  
  
  
  <p>This works like magic.</p>
  
  <pre><code>for i in 1..10
    ...
  end
  </code></pre>
  
  <p>Isn't it only intuitive that this backward for loop should work as well?</p>
  
  <pre><code>for i in 10..1
    ...
  end
  </code></pre>
  
  <p>If there is some syntactical reason why this shouldn't work, I feel like ruby has to be changed to allow it. It's just intuitive to write backward for loop that way.</p>