Question: This is a Haskell language question * Problem 7 (12 points): pipeline Using '. ', foldr, map and the identity function, id, write a function
This is a Haskell language question
* Problem 7 (12 points): pipeline Using '. ', foldr, map and the identity function, id, write a function pipeline :: [a -> a] -> ([a] -> [a]) that, give a list of type-(a a) functions, forms a pipeline function of type [a] [a]. In such a pipeline, each function in the original function list is applied in turn to each element of the input (assume the functions are applied from right to left in this case)3 Testing for pipeline: Devise your own tests. Point allocation: 8 points correctness, 4 points testing. 3 Hint: You should have: pipeline -id * Problem 7 (12 points): pipeline Using '. ', foldr, map and the identity function, id, write a function pipeline :: [a -> a] -> ([a] -> [a]) that, give a list of type-(a a) functions, forms a pipeline function of type [a] [a]. In such a pipeline, each function in the original function list is applied in turn to each element of the input (assume the functions are applied from right to left in this case)3 Testing for pipeline: Devise your own tests. Point allocation: 8 points correctness, 4 points testing. 3 Hint: You should have: pipeline -id
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
