Assuming, data Tree t = Leaf t | Node (Tree t) t (Tree t), writefunction contains in Haskell.
Does a given tree contain a given value?
Hint: function is recursive
Write defining equations first. 1. base case, 2. recursivecase
Expert Answer
An answer will be send to you shortly. . . . .