toNotEmptyMap

@SinceKotools(project = Project.Types, version = "3.2")
fun <K, V> Map<K, V>.toNotEmptyMap(): Result<NotEmptyMap<K, V>>

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