RosettaCodeData/Task/Associative-array-Creation/Perl-6/associative-array-creation-5.pl6

5 lines
77 B
Raku
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
my %hash{Any}; # same as %hash{*}
class C {};
my %cash{C};
%cash{C.new} = 1;