summaryrefslogtreecommitdiff
path: root/70b-73/72.hs
diff options
context:
space:
mode:
Diffstat (limited to '70b-73/72.hs')
-rw-r--r--70b-73/72.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/70b-73/72.hs b/70b-73/72.hs
new file mode 100644
index 0000000..06f2ec9
--- /dev/null
+++ b/70b-73/72.hs
@@ -0,0 +1,5 @@
+data Tree a = Node a [Tree a] deriving (Eq, Show)
+
+bottomUp :: Tree Char -> [Char]
+
+bottomUp (Node v xs) = (concat $ map bottomUp xs) ++ [v]