Letter frequency: Difference between revisions

add bqn
No edit summary
(add bqn)
Line 1,695:
Yy: 3633
Zz: 433</pre>
 
=={{header|BQN}}==
similar to APL. <code>"sample.txt"</code> can be substituted with any filename.
<lang BQN>Freq←⍷⊸(⊣≍·+˝=⌜˜)
 
Freq "balloon"
# For a file:
Freq •FLines "sample.txt"</lang>
<lang>┌─
╵ 'b' 'a' 'l' 'o' 'n'
1 1 2 2 1
┘</lang>
 
=={{header|Bracmat}}==
236

edits