ffix,underestimateCount,lazy,Element,SubSequence"
root: "/v2.1"
---

<div class="intro-declaration"><code class="language-swift">struct PermutationGenerator&lt;C : CollectionType, Indices : SequenceType where C.Index == Indices.Generator.Element&gt;</code></div>

<div class="discussion comment">
    <p>A <em>generator</em> that adapts a <em>collection</em> <code>C</code> and any <em>sequence</em> of
its <code>Index</code> type to present the collection&#39;s elements in a
permuted order.</p>
</div>

<table 