Darren (>): > (I apologize if > this isn't correct Perl 6, and I'm not sure how to specify a hash slice that > returns pairs rather than just values):
Ask, and it shall be given you (by S02): %hash = (:a<A>, :b<B>); %hash<a b c>; # returns 'A', 'B', Nil %hash<a b c> :p; # returns a => 'A', b => 'B' %hash<a b c> :kv; # returns 'a', 'A', 'b', 'B' %hash<a b c> :k; # returns 'a', 'b' %hash<a b c> :v; # returns 'A', 'B' // Carl