ollapse" href="#comment-func-indexof_">func indexOf(<wbr>_:)</a>
        
<div class="comment collapse" id="comment-func-indexof_"><div class="p">
    <p>Returns the first index where <code>predicate</code> returns <code>true</code> for the
corresponding value, or <code>nil</code> if such value is not found.</p>

<p><strong>Complexity:</strong> O(<code>self.count</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func indexOf(@noescape predicate: (Element) throws -&gt; Bool) rethrow