nt collapse" id="comment-func-distanceto_"><div class="p">
    <p>Measure the distance between <code>self</code> and <code>end</code>.</p>

<p><strong>Requires:</strong>
  - <code>start</code> and <code>end</code> are part of the same sequence when conforming to
    <code>RandomAccessSequenceType</code>.
  - <code>end</code> is reachable from <code>self</code> by incrementation otherwise.</p>

<p><strong>Complexity:</strong>
  - O(1) if conforming to <code>RandomAccessIndexType</code>
  - O(<code>n</code>) 