diff --git a/doc/Language/typesystem.pod6 b/doc/Language/typesystem.pod6 index 4b8106d08..d4ec2b4aa 100644 --- a/doc/Language/typesystem.pod6 +++ b/doc/Language/typesystem.pod6 @@ -792,10 +792,10 @@ that have been defined. All of them turn the values into C, which may not be desirable. By treating the enum as a package, we can get a list of types for the keys. - enum E(); + enum E ; my @keys = E::.values; - say @keys.map: *.enums; - # OUTPUT: «(Map.new((one => 0, two => 1)) Map.new((one => 0, two => 1)))␤» + say @keys.map: *.perl; + # OUTPUT: «(E::one E::two)␤» With the use of B<()> parentheses, an enum can be defined using any arbitrary dynamically defined list. The list should consist of Pair