Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
sub s(@a, :$b, :$c) {
my %named;
%named{$_} := ::($_) for &?ROUTINE.signature.params.grep(*.named)».name;
say %named<$b $c>;
}
s(<a b c>, :2b, :3c);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment