Created
October 3, 2012 12:34
-
-
Save jnthn/3826700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use MONKEY_TYPING; | |
augment class Signature { | |
multi method ACCEPTS(Signature:D: Signature:D $topic) { | |
return False unless $topic.params == self.params; | |
for $topic.params Z self.params -> $t, $s { | |
return False unless $t.type ~~ $s.type; | |
} | |
return True; | |
} | |
} | |
say :(Str) ~~ :(Str); | |
say :(Int) ~~ :(Str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment