toNotEmptyMap

fun <K, V> Map<K, V>.toNotEmptyMap(): NotEmptyMap<K, V>

Deprecated

Use the Map.toNotEmptyMapOrThrow function instead.

Replace with

import kotools.types.collections.toNotEmptyMapOrThrow
this.toNotEmptyMapOrThrow()

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