Jump to content

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

m
(Added 11l)
Line 13:
<lang 11l>F isvowel(c)
‘ true if c is an English vowel (ignore y) ’
R c C [(‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘A’, ‘E’, ‘I’, ‘O’, ‘U’])
 
F isletter(c)
‘ true if in English standard alphabet ’
R c C (‘a’..‘z’ | c C, ‘A’..‘Z’)
 
F isconsonant(c)
1,481

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.