S12 defines enums and rakudo impliments them, so perl6 > enum wkend <<Sat Sun>>; my $x = Sun; say $x 1
But suppose I want to get the "face value" of $x, viz., 'Sun'? How do I get it? say $x.key doesnt work.
S12 defines enums and rakudo impliments them, so perl6 > enum wkend <<Sat Sun>>; my $x = Sun; say $x 1
But suppose I want to get the "face value" of $x, viz., 'Sun'? How do I get it? say $x.key doesnt work.