ription,endIndex,first,indices,isEmpty,lazy,startIndex,Generator,Element,Index,SubSequence"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">struct Range&lt;Element : ForwardIndexType&gt;</code></div>

<div class="discussion comment">
    <p>A collection of consecutive discrete index values.</p>

<p><strong><code>Element</code>:</strong>  Is both the element type and the index type of the
  collection.</p>

<p>Like other collections, a range containing one element has an
<code>