Open evantianx opened 6 years ago
Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.
findShortest :: String -> Integer findShortest = fromIntegral . minimum . map length . words
Description:
Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.