Cool Perl 6: Displaying hash contents
Perl 6:
.say for %scores
Start with
for %scores.pairs { say $_ } for %scores.pairs { $_.say } # say $_ is $_.say for %scores.pairs { .say } # $_.say is .saycontinued...
Perl 6 | Perl 6 today | #29 |
Perl 6:
.say for %scores
Start with
for %scores.pairs { say $_ } for %scores.pairs { $_.say } # say $_ is $_.say for %scores.pairs { .say } # $_.say is .saycontinued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |