DO NOT USE ANY OTHER LANGUAGE BESIDES HASKELL. PLEASE REPLY WITH A SOLUTION WRIT
ID: 3605338 • Letter: D
Question
DO NOT USE ANY OTHER LANGUAGE BESIDES HASKELL. PLEASE REPLY WITH A SOLUTION WRITTEN IN HASKELL
Write a function that checks if every other letter of a string is between 'a' and 'f' (the remaining letters don't matter, start with the first letter in the string, skip the second, and so on). The function takes in a String and returns a Bool. Use partial application at least once. Empty string returns True.
Write a function that maps a list of Strings that may have multiple words to Strings with only the first word left. E.g. ["Today is Thursday", "Banquet", "unreal games"] becomes ["Today", "Banquet", "unreal"].
Write a function that takes a two-dimensional matrix of Strings and transforms all empty strings to "0".
Write a function that sorts a list of Strings by length of the first word in the strings (if the strings have more than one word)
Write a function that pack repeats in a list of Chars into separate lists, resulting in a sorted list of lists: E.g.,
Explanation / Answer
-- If You have any doubt regarding code then comment below
-- If this code is helpful for you then rate it positive.
-- Thanks
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.