enum_values
ErrorsCollection

enum_values

Synthesised documentation from type/Metamodel/EnumHOW

From type/Metamodel/EnumHOW

See Original text in context

method enum_values($obj)

Returns the values for the enum.

enum Numbers <10 20>;
say Numbers.^enum_values;                   # OUTPUT: {10 => 0, 20 => 1}