e like calling the <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/to-string.html">Map.toString</a> method.</p><br>
<details>
<summary>
    <b>Calling from Kotlin</b>
</summary><p class="paragraph">Here's an example of calling this method from Kotlin code:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val notEmptyMap: NotEmptyMap&lt;Char, Int&gt; =<br>    notEmptyMapOf('a' to 1, 'b' to 2, 'c' to 3)<br>assertEquals(expected = "{a=1, b=2, c=3}