How do I initialize an empty EnumSet in kotlin?
I’m pretty new to Kotlin and trying to create a sort of bitset enum where ints correspond to state and I can toggle individual states by toggling individual bits. But I’m stuck on where an object can have no state. https://pl.kotl.in/L_fTBahVN import java.util.* fun main() { var d = Door(100, EnumSet.noneOf(Status)) } enum class Status(intValue:… Read More How do I initialize an empty EnumSet in kotlin?