In Metamodel::EnumHOW§
See primary documentation in context for method enum from value
method enum_from_value(, )
Given a value of the enum's base type, return the corresponding enum.
<10 20>;say Numbers.^enum_from_value(0); # OUTPUT: 10
See primary documentation in context for method enum from value
method enum_from_value(, )
Given a value of the enum's base type, return the corresponding enum.
<10 20>;say Numbers.^enum_from_value(0); # OUTPUT: 10