g/api/latest/jvm/stdlib/kotlin.collections/-set/index.html">Set</a> of type <a href="index.html">E</a>.</p><br>
<details>
<summary>
    <b>Calling from Kotlin</b>
</summary><p class="paragraph">Here's an example of calling this function from Kotlin code:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val integers: NotEmptySet&lt;Int&gt; = notEmptySetOf(1, 2, 3, 1)<br>val actual: Set&lt;Int&gt; = integers.toSet()<br>val expected: Set&lt;Int&gt; = setOf(1, 2, 3)<br>assertEq