Question: Given the following definitions in haskell: (m1) map f [] = [] (m2) map f (x: xs) = fx: map f xs (c1) [] ++
Given the following definitions in haskell:
(m1) map f [] = []
(m2) map f (x: xs) = fx: map f xs
(c1) [] ++ ys = ys
(c2) (x: xs) ++ ys = x: (xs ++ ys)
prove for all lists xs and ys: map f (xs ++ ys) = (map f xs) ++ (map f ys).
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
