title: Should I count up in Perl 6 with a sequence or a range?
body: <p>Perl 6 has <a href="https://docs.perl6.org/language/list.html#Lazy_Lists">lazy lists</a>, but it also has unbounded <a href="https://docs.perl6.org/type/Range">Range</a> objects. Which one should you choose for counting up by whole numbers?</p>
  
  <p>And there's unbounded <a href="https://docs.perl6.org/type/Range">Range</a> with two dots:</p>
  
  <pre><code>0 .. *
  </code></pre>
  
  <p>There's the <a href="https://docs.perl6.org/type/Seq">Seq (sequence)</a> with three dots:</p>
  
  <pre><code>0 ... *
  </code></pre>
  
  <p>A <code>Range</code> generates lists of consecutives thingys using their natural order. It inherits from <a href="https://docs.perl6.org/type/Iterable">Iterable</a>, but also <a href="https://docs.perl6.org/type/Positional">Positional</a> so you can index a range. You can check if something is within a <code>Range</code>, but that's not part of the task.</p>
  
  <p>A <code>Seq</code> can generate just about anything you like as long as it knows how to get to the next element. It inherits from <a href="https://docs.perl6.org/type/Iterable">Iterable</a>, but also <a href="https://docs.perl6.org/type/PositionalBindFailover">PositionalBindFailover</a> which fakes the <code>Positional</code> stuff through a cache and list conversion. I don't think that a big deal if you're only moving from one element to the next.</p>
  
  <p>I'm going back and forth on this. At the moment I'm thinking it's <a href="https://docs.perl6.org/type/Range">Range</a>.</p>