Count how many vowels and consonants occur in a string: Difference between revisions

→‎{{header|Haskell}}: Updated output in second variant
(→‎{{header|Haskell}}: Updated output in second variant)
Line 310:
both = join bimap</lang>
{{Out}}
<pre>33 "'vowels and consonants"'
 
12 characters drawn from 5 vowels:
('a', 4)
('e', 3)
('i', 1)
('o', 3)
('u', 1)
 
21 characters drawn from 9 consonants:
('aF', 42)
('eg', 34)
('il', 1)
('om', 32)
('un', 13)</pre>
('p',1)
('r',6)
('t',1)
('v',1)</pre>
 
=={{header|jq}}==
9,655

edits