I am trying to find words that start with a specific letter from a list of lines. The user enters a list of words and a starting letter. For example, something like:
"table pen for pencil" "p"
Values โโstarting with p should be displayed in this case pen and pencil . My first step is to split the string into a list of strings using the words function. Then how do I find which letter each word begins with? The type of function will look like this:
--------------Find words Starting with a given letter------------------ findWords :: String -> Char -> [String]
source share