groostav
08/29/2017, 6:19 PMenum class Thingy { A, B, C }
//...
if(value in Thingy.run { listOf(A, B) })
except, suprise, thats no good, since the enum object Thingy
doesnt have constant values A
and B
on it. Is this by design? is there are more elegant way to write my if check than static-imports or if(value == Thingy.A || value == Thingy.B)
?