interface VariantMap.NonEmpty<K,V>
A non-empty type-variant Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the VariantMap API documentation
Extends: VariantMap<K,V>
Type parameters
Name | Description |
---|---|
K | the key type |
V | the value type |
note
Type-variance means that both the key and value types can be widened in a type-safe way without casting. @note As a consequence of being variant, the type does not contain methods that (can) add new elements to the collection.