html">head</a> and containing all the elements of the optional <a href="not-empty-list-of.html">tail</a>.</p><p class="paragraph">Here's a simple usage example:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val integers: NotEmptyList&lt;Int&gt; = notEmptyListOf(1, 2, 3)<br>println(integers) // [1, 2, 3]</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Conte