notEmptyMapOf
@SinceKotoolsTypes(version = "4.0")
Creates a NotEmptyMap starting with a head and containing all the entries of the optional tail.
Here's a simple usage example:
val map: NotEmptyMap<Char, Int> = notEmptyMapOf('a' to 1, 'b' to 2)
println(map) // {a=1, b=2}
Content copied to clipboard