Letter frequency: Difference between revisions
m
→{{header|Perl 6}}: style twiddles
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Update, add example usage) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: style twiddles) |
||
Line 2,067:
=={{header|Perl 6}}==
In perl6, whenever you want to count things in a collection, the rule of thumb is to use the Bag structure.
<lang perl6>.&ws.say for
sub ws ($pair) {
|