(HASKELL) Having trouble finishing this function below (depth). The…
Question (HASKELL) Having trouble finishing this function below (depth). The… (HASKELL) Having trouble finishing this function below (depth). The function returns the depth of a tree. (A tree with only a root node is defined to have depth=0.). (Tree3 needs to be instantiated). Thank you! data Tree3 = Leaf1 Int | Node1 Tree3 Int Tree3 depth :: Tree3 -> Int Engineering & Technology Computer Science Share QuestionEmailCopy link Comments (0)


