ent,next,prefix,reduce,reverse,sort,split,startsWith,suffix,underestimateCount,lazy,Element,SubSequence"
root: "/v2.0"
---

<div class="intro-declaration"><code class="language-swift">struct IndexingGenerator&lt;Elements : Indexable&gt;</code></div>

<div class="discussion comment">
    <p>A <em>generator</em> for an arbitrary <em>collection</em>.  Provided <code>C</code>
conforms to the other requirements of <code>Indexable</code>,
<code>IndexingGenerator&lt;C&gt;</code> can be used as the result of <code>