ming to <code>RandomAccessIndexType</code>
  - O(<code>n</code>) otherwise, where <code>n</code> is the function&#39;s result.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func distanceTo(end: FlattenCollectionIndex&lt;BaseElements&gt;) -&gt; FlattenCollectionIndex&lt;BaseElements&gt;.Distance</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/ForwardIndexType/"><code>ForwardIndexType</code></a>    
</div></div>
</div>
<div class="declaration" id="func-successor">