toNotEmptyMapOrThrow

@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
fun <K, V> Map<K, V>.toNotEmptyMapOrThrow(): NotEmptyMap<K, V>

Returns a NotEmptyMap containing all the entries of this map, or throws an IllegalArgumentException if this map is empty.