Letter frequency: Difference between revisions

m
Line 5,576:
16->d
...</pre>
If you prefer seeing the character first, followed by the count, replace the do-loop's action with:
<lang smalltalk>... do:[:assoc | '%s -> %s\n' printf:{assoc value . assoc key} on:Stdout ].</lang>
{{out}}
Anonymous user