Count how many vowels and consonants occur in a string: Difference between revisions
Content added Content deleted
(→{{header|Haskell}}: Updated output in second variant) |
|||
Line 310: | Line 310: | ||
both = join bimap</lang> |
both = join bimap</lang> |
||
{{Out}} |
{{Out}} |
||
<pre>33 |
<pre>33 'vowels and consonants' |
||
12 characters drawn from 5 vowels: |
12 characters drawn from 5 vowels: |
||
('a', |
('a',4) |
||
('e', |
('e',3) |
||
('i', |
('i',1) |
||
('o', |
('o',3) |
||
('u', |
('u',1) |
||
21 characters drawn from 9 consonants: |
21 characters drawn from 9 consonants: |
||
(' |
('F',2) |
||
(' |
('g',4) |
||
(' |
('l',1) |
||
(' |
('m',2) |
||
(' |
('n',3) |
||
('p',1) |
|||
('r',6) |
|||
('t',1) |
|||
('v',1)</pre> |
|||
=={{header|jq}}== |
=={{header|jq}}== |