enumSetOf
Creates a Set optimized for storing elements of enumerations.
Depending on the enumeration size, different implementations may be returned.
Example
enum class Foo {
A,
B,
C,
}
val foo = enumSetOf(Foo.A, Foo.B)Content copied to clipboard