zipWith for trees in Haskell
问题 I am learning Haskell using The Haskell School of Expression: Learning Functional Programming through Multimedia and I am unsure how to go about solving this exercise. Using the definition of trees given by data Tree a = Node (Tree a) (Tree a) | Leaf a Define tree versions of the list functions zip and zipWith . There will be cases at the leaves or where trees are of different shapes where you’ll have to make design decisions. Try to make your decisions as elegant as possible. For zip I have