Anonymous user
Letter frequency: Difference between revisions
→{{header|AutoHotkey}}
m (→{{header|Phix}}: output ten per line) |
|||
Line 1,372:
=={{header|AutoHotkey}}==
<br>This is the past version of this edit but made into a function, and now it only shows the letters that are in it, but not the ones with 0 letters
<lang AutoHotkey>LetterFreq(Var) {
Loop, 26
{
if Count
}
return out
}
var := "The dog jumped over the lazy fox"
var2 := "foo bar"
Msgbox, % LetterFreq(var)
Msgbox, % LetterFreq(var2)</lang>
{{out}}
<pre>
a:
g: 1
h: 2
j: 1
l: 1
m: 1
o: 3
p: 1
r: 1
t: 2
u: 1
v: 1
x: 1
y: 1
z: 1
---------------------------
---------------------------
a: 1
b: 1
▲e: 24
▲x: 5
▲y: 0
▲z: 0</pre>
=={{header|AutoIt}}==
|