in reply to Re^3: Intersect two hashes
in thread Intersect two hashes
you can't declare a hash slice via myYou could have done
but I don't know of any other one-statement way. Does Perl 6 provide a convenient syntax to declare a hash and initialize a slice of it in one swell foop?@$_{ @intersection } = @hash1{ @intersection } for \my %intersection;
|
|---|