``` enum class A { one, two, three} println(A.two....
# getting-started
s
Copy code
enum class A { one, two, three}
println(A.two.ordinal)
println(A.values()[2])
this works in REPL