e-swift">let empty: [Int] = []
print(empty.dropLast())
// Prints &quot;[]&quot;</code></pre>

<p><strong>Returns:</strong> A subsequence leaving off the last element of the sequence.</p>

<p><strong>Complexity:</strong> O(<em>n</em>), where <em>n</em> is the length of the sequence.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func dropLast() -&gt; EnumeratedSequence&lt;Base&gt;.SubSequence</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Sequence/"><code>Sequenc