Write Recursive Haskell Function Cannot Use Existing Functions Following Write Function Lo Q37117314

Write arecursive Haskell function (you cannot use existing functions) todo the following:

Write a functionlongestLowerString that takes a string list and returns the longeststring in the list that begins with a lowercase letter, or “” ifthere are no such strings. For example:

longestLowerString [“abc”, “Hello”, “car”, “apple”] ->”apple”

longestLowerString[“ABC”, “Hello”] -> “”


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.