enum_from_value
ErrorsCollection

enum_from_value

Synthesised documentation from type/Metamodel/EnumHOW

From type/Metamodel/EnumHOW

See Original text in context

method enum_from_value($obj$value)

Given a value of the enum's base type, return the corresponding enum.

enum Numbers <10 20>;
say Numbers.^enum_from_value(0);            # OUTPUT: 10