a is a string and I would like to find all words in the string which have an upper case character.
How can I convert the string to chars?
listWordsWithUpper :: String -> [String]
listWordsWithUpper a = filter (any . (isUpper a))
Example:
listWordsWithUpper "Haskell is tHe BEST" == ["Haskell", "tHe", "BEST"]