summaryrefslogtreecommitdiff
path: root/70b-73/72.hs
blob: 06f2ec976d753fa75992ac14362e3116de6b0de3 (plain) (blame)
1
2
3
4
5
data Tree a = Node a [Tree a] deriving (Eq, Show)

bottomUp :: Tree Char -> [Char]

bottomUp (Node v xs) = (concat $ map bottomUp xs) ++ [v]