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.
1 parent 881d17d commit ed89bafCopy full SHA for ed89baf
doc/Type/Signature.pod6
@@ -58,6 +58,9 @@ Smart matching signatures against a List is supported.
58
my $sig = :(Int $i, Str $s);
59
say (10, 'answer') ~~ $sig;
60
# OUTPUT: «True»
61
+ my $ßub = sub ( Str $ß, Int $þ ) { return $ß xx $þ };
62
+ say $ßub.signature ~~ :( Str, Int );
63
+ # OUTPUT: «True»
64
given $sig {
65
when :(Str, Int) { say 'mismatch' }
66
when :($, $) { say 'match' }
0 commit comments