Is there a simple way to iterate over all enumerated instances of a class in Ceylon?
Just like values() for Java enums?
values()
abstract class Suit(
One way is to use the metamodel:
for (caseType in `class Suit`.caseTypes) { assert (is OpenClassOrInterfaceType caseType); print(caseType.declaration.name); }