Letter frequency: Difference between revisions
Content added Content deleted
Line 5,576: | Line 5,576: | ||
16->d |
16->d |
||
...</pre> |
...</pre> |
||
If you prefer seeing the character first followed by the count, replace the do-loop's action with: |
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> |
<lang smalltalk>... do:[:assoc | '%s -> %s\n' printf:{assoc value . assoc key} on:Stdout ].</lang> |
||
{{out}} |
{{out}} |