Question: Complete this exercise using the Haskell coding language In src/MP2a.hs you will find the declarations for ten function that you need to implement, each prefaced

Complete this exercise using the Haskell coding language

Complete this exercise using the Haskell coding language In "src/MP2a.hs" you will

In "src/MP2a.hs" you will find the declarations for ten function that you need to implement, each prefaced by a comment containing a specification and sample calls/results. Because the goal here is to practice writing list-processing functions from scratch, you are to avoid using any list processing and higher-order functions defined by the Haskell standard library. List comprehensions are technically legal, but avoid them too if you can (just for now!). You may, however, use arithmetic and character processing functions. The functions you will implement are listed below, for reference: 1. cycleN :: Int [a][a] 2. chunksof :: Int [a][[a]] 3. unzip4 :: [(a,b,c,d)]([a],[b],[c],[d]) 4. intersperse :: a [[a]][a] 5. removeAll :: ( Eq a )[a][a][a] 6. sublist : (Int, Int) [a]([a],[a]) 7. luhn :: [Int] Bool 8. runLengthEncode :: String [( Int, Char )] 9. runLengthDecode :: [( Int, Char )] String

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!