Skip to main content

interface VariantSet<T>

A type-variant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the VariantSet API documentation

Companion namespace: VariantSet

Implemented by: VariantSet.NonEmpty<T>

Type parameters

NameDescription
Tthe 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.