DEV Community

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
 
craigmc08 profile image
Craig McIlwrath

Haskell:

import Data.Char

countVowels :: [Char] -> Int
countVowels = length . filter (`elem` "aeiou" ) . map toLower