summaryrefslogtreecommitdiff
path: root/61-69/62.hs
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2017-05-30 01:28:36 -0400
committerDeterminant <ted.sybil@gmail.com>2017-05-30 01:28:36 -0400
commit626a548f0ef51b5ee1d3ba049330317f94c89f99 (patch)
tree3ac0d4146e156a64ffe81fd2578ff6638f9fc7f5 /61-69/62.hs
parent8ea7effa639a0640b38917a9f575aedebcdd2b78 (diff)
...
Diffstat (limited to '61-69/62.hs')
-rw-r--r--61-69/62.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/61-69/62.hs b/61-69/62.hs
new file mode 100644
index 0000000..a1344c6
--- /dev/null
+++ b/61-69/62.hs
@@ -0,0 +1,5 @@
+data Tree a = Empty | Branch a (Tree a) (Tree a) deriving (Show, Eq)
+
+internals Empty = []
+internals (Branch _ Empty Empty) = []
+internals (Branch x l r) = x:internals l ++ internals r