ment-func-generator-element_-comparable-minelement"><div class="p">
    <p>Returns the minimum element in <code>self</code> or <code>nil</code> if the sequence is empty.</p>

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

    <h4>Declaration</h4>    
    <code class="language-swift">func minElement() -&gt; Self.Generator.Element?</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/CollectionType/"><code>CollectionType</code></a>,    <a href="../../protocol/Sequence