preorder : Tree a -> List a preorder tree = case tree of Empty -> [] Node v l r -> v :: (preorder l) ++ (preorder r)
Back to problem