a class="toggle-link" data-toggle="collapse" href="#comment-func-generator-element_-comparable-maxelement">func maxElement()</a>
        
<div class="comment collapse" id="comment-func-generator-element_-comparable-maxelement"><div class="p">
    <p>Returns the maximum 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 maxElement() -&gt; Base