 id="comment-func-prefix_"><div class="p">
    <p>Returns a subsequence, up to <code>maxLength</code> in length, containing the
initial elements.</p>

<p>If <code>maxLength</code> exceeds <code>self.count</code>, the result contains all
the elements of <code>self</code>.</p>

<p><strong>Requires:</strong> <code>maxLength &gt;= 0</code></p>

    <h4>Declaration</h4>    
    <code class="language-swift">func prefix(maxLength: Int) -&gt; AnySequence&lt;Strideable&gt;</code>
    
        <h4>Declared In</h4>
  