toMap

fun toMap(): Map<K, V>

Returns all entries of this map as a Map with keys of type K and values of type V.

Here's a simple usage example:

val notEmptyMap: NotEmptyMap<Char, Int> = notEmptyMapOf(
'a' to 1,
'b' to 2,
'c' to 3
)
val map: Map<Char, Int> = notEmptyMap.toMap()
println(map) // {a=1, b=2, c=3}