We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.WHAT
1 parent 84ac0dc commit 6946033Copy full SHA for 6946033
doc/Type/Enumeration.rakudoc
@@ -16,6 +16,7 @@ types:
16
17
enum norse-gods <Þor Oðin Loki>;
18
my $one-of-them = norse-gods.pick;
19
+ say $one-of-them.WHAT; # OUTPUT: «(norse-gods)»
20
say $one-of-them ~~ Enumeration; # OUTPUT: «True»
21
22
but nothing prevents you from using it in your own programs if you want to
@@ -64,7 +65,7 @@ T and A
64
65
# and so on...
66
=end code
67
-An item would smartmatch the enum class, but not the other way round:
68
+An item would smartmatch the enum cass, but not the other way round:
69
70
=for code
71
enum Foo <bar baz>;
0 commit comments