im trying to make a function on haskell, I know that the function is define like:
justWithA : [Char] -> Bool
justWithA [] = True
justWithA (x:xs) | (x == "a") = x + justWithA xs
| else (x == "e") = False
| else (x == "i") = False
| else (x == "o") = False
| else (x == "u") = False
I think there is a better way to define this function, just don't know the correct way to do it...