COSC 341/342 HW 1017 FALL 2017 More Haskell Exercises Distributed 10/17/2017 Due: 10/24/2017 All code should be in a single file. You will need to submit code AND screen shot of it working. The currying black boxes will be hand-written on separate paper. Give the solutions in numerical order. 1. f a b = a ^ b 1. A. Show the blackbox and arrow description of the currying. 1. B. Explicitly give partially applied definitions for f 2 3 2. g a b c = a ^ b / c 2. A. Show the blackbox and arrow description of the currying. 2. B. Explicitly give partially applied definitions for g 2 3 4 3. disc a b c = b ^ 2 - 4 * a * c 3. A. Show the blackbox and arrow description of the currying. 3. B. Explicitly give partially applied definitions for disc 1 2 1 4. A. Give a function that uses list comprehension to implement the map function. Your function is named map' 4. B. Demonstrate your map' works on map' (3:) [ [], [2, 4], [1, 2, 3, 4] ] map' (++ "!") ["abc", "XYZ"] 5. A. Give a function using list comprehension and predicates to implement the filter function. Your function is named filter' 5. B. Demonstrate your filter' works on filter' (>3) [4, 2, 5, 1, 7] filter' (`elem` ['a'..'z']) "What Planet Is THIS?"