I have to write the onlyVowels :: [[Char]] -> [[Char]] function that should only return the vowels.
For example: onlyVowels ["Return", "Only", "Vowels", "Please"] == ["eu", "Oy", "oe", "eae"]
So far, I have come up with this:
onlyVowels x = filter (isAVowel x) x where
isAVowel x = elem x "aeiouyAEIOUY"
The problem with this is the fact that I have to check a list of words, not just a character. This exercise also prohibits the use of recursion.