Derek Peirce
06/27/2026, 9:46 PMEnumSet and EnumMap to Kotlin? For JVM, t would be convenient to have methods like toEnumSet() and enumSetOf(...). (In particular, enumSetOf<MyEnum>() looks better than EnumSet.noneOf(MyEnum::class.java), and a toEnumSet() could detect when the underlying Iterable is empty to avoid the IllegalArgumentException by using the reified type argument.ephemient
06/27/2026, 11:27 PM