interface VariantMultiSet<T>
A type-variant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the VariantMultiSet API documentation
Companion namespace: VariantMultiSet
Implemented by: VariantMultiSet.NonEmpty<T>
Type parameters
Name | Description |
---|---|
T | the value type |
note
Type-variance means that both the value type 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.