Letter frequency: Difference between revisions
→{{header|langur}}
No edit summary |
Langurmonkey (talk | contribs) |
||
Line 4,726:
=={{header|langur}}==
<syntaxhighlight lang="langur">val .countLetters =
for[=h{}] .s2 in split(replace(.s, RE/\P{L}/)) {
_for[.s2; 0] += 1
Line 4,733:
val .counts = .countLetters(readfile "./fuzz.txt")
writeln join "\n", map
</syntaxhighlight>
{{out}}
|