Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created September 12, 2017 18:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gfldex/44eeaceb7d021c82e63b11214d0cccfc to your computer and use it in GitHub Desktop.
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