Question: Functions should be made using haskell 1. Write a function maxList :: [Integer] -> Integer which returns the maxi- mum element of a list. 2.

 Functions should be made using haskell 1. Write a function maxList

Functions should be made using haskell

1. Write a function maxList :: [Integer] -> Integer which returns the maxi- mum element of a list. 2. Write a function multiplyList :: [Integer] -> Integer which multiplies to- gether all the elements of a list. What should be the base case value when the list is empty? 3. Write a function existsOdd :: [Integer] -> Bool which returns True if there exists an odd element in the list, and returns False otherwise. 4. Write a function findOdd :: [Integer] -> Maybe Integer which returns Just x if there is some x in the input that is odd, and returns Nothing otherwise. 5. Write a function removeEmpty :: [String] -> [String] which takes a list of strings and removes all empty strings from the list. removeEmpty ["Hello", "", "there", "", " "world",""] ["Hello", "there","world"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!