method enum_from_value

Documentation for method enum_from_value, assembled from the following types:

class Metamodel::EnumHOW

From Metamodel::EnumHOW

(Metamodel::EnumHOW) method enum_from_value

method enum_from_value(Metamodel::ClassHOW:D: $obj$value)

Given an value, return the corresponding enum.

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