toMutableEnumSet
Copies a regular Set into a mutable set optimized for enumerations.
Depending on the enumeration size, different implementations may be returned.
Example
enum class Foo {
A,
B,
C,
}
val foo = setOf(Foo.A, Foo.B).toMutableEnumSet()Content copied to clipboard