Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created February 8, 2010 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashgti/297833 to your computer and use it in GitHub Desktop.
Save ashgti/297833 to your computer and use it in GitHub Desktop.
augment class Array {
has %!key_map;
method postcircumfix:<{ }> (**@slice) {
%!key_map = @slice;
}
}
my @a{1, 2, 3} = 4, 5, 6;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment