Anonymous user
Letter frequency: Difference between revisions
→{{header|Smalltalk}}
Line 5,565:
bag sortedCounts ...</lang>
To show all counts (as opposed to selecting the letter counts only), replace the "select:thenDo:" by a simple "do:", as in:
<lang smalltalk>bag sortedCounts do:[:assoc | assoc printCR].</lang>
or even shorter:
|