Write myMap in terms of foldr. It should have the same behavior as the
-- built-in map.
myMap :: (a -> b) -> [a] -> [b]
myMap f = foldr (\x y -> f x : y) []

-- 6
myMap :: (a -> b) -> [a] -> [b]
myMap f = foldr (\x y -> f x : y) []
myMap f = foldr (\x y -> f x : y) []