 be reflected on the resulting <a href="-not-empty-list/index.html">NotEmptyList</a>.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val original: MutableCollection&lt;Int&gt; = mutableSetOf(1, 2, 3, 1)<br>val notEmptySet: NotEmptySet&lt;Int&gt; = original.toNotEmptySetOrThrow()<br>println(original) // [1, 2, 3]<br>println(notEmptySet) // [1, 2, 3]<br><br>original.clear()<br>println(original) // []<br>println(notEmptySet) // [1, 2, 3]</code></pre><span class="top-right-po