Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created February 15, 2012 11:11
Show Gist options
  • Save jnthn/1835111 to your computer and use it in GitHub Desktop.
Save jnthn/1835111 to your computer and use it in GitHub Desktop.
> my Rat %h{Int};
().hash
> %h<foo> = 1.5
Nominal type check failed for parameter '$key'; expected Int but got Str instead
> %h{1} = 1.5; %h{2} = 2.5; say %h{1}; say %h{2};
1.5
2.5
> .WHAT.say for %h.keys
Int()
Int()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment