Created
July 2, 2015 05:15
-
-
Save anonymous/0fdb5c3da8c7b0d80934 to your computer and use it in GitHub Desktop.
hash slice oddity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
my %h = 1 => $%( a => 1, b => 2, c => 3 ), 2 => $%( e => 4, f => 5, g => 6 ); | |
my @i = <1>; | |
say %h{@i}.map: *.<a>; # 1 | |
say %h<1>.map: *.<a>; # 1 (Any) (Any) | |
say %h{<1>}.map: *.<a>; # 1 (Any) (Any) | |
say %h{[1]}.map: *.<a>; # 1 (Any) (Any) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment