Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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