title: How do I iterate a range of values?
body: <p>I understand that:</p>
  
  <pre><code>array = [1,2,3,4,5]
  array.each { |x| puts x } #=&gt; 1,2,3,4,5
  </code></pre>
  
  <p>How do I get the same to read for an inclusive range? </p>
  
  <p>When I put:</p>
  
  <pre><code>array = [1...5]
  array.each { |x| puts x } 
  </code></pre>
  
  <p>I just get <code>1...5</code>. I really want: <code>1,2,3,4,5</code>.</p>
  
  <p>Any ideas?</p>