Created
March 1, 2022 20:32
-
-
Save gfldex/0df500d560d3e59a2360162a3a3bad6a to your computer and use it in GitHub Desktop.
This file contains 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
class C { | |
multi method m(Int $i) { $i + 1 } | |
} | |
C.^methods.classify(*.name)<m>[0].add_dispatchee(my method m(Int() $i) { self.m($i) }); | |
C.new.m("41").say; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment