-
Notifications
You must be signed in to change notification settings - Fork 0
Home
AshHash edited this page Apr 9, 2017
·
1 revision
Welcome to the List-To-Tree wiki!
I have defined a polymorphic Tree data type with the help of three constructors, which are Nil, Leaf and Node data constructors. These constructor help me in defining a tree with following structure
+
/ \
1 +
/ \
2 3
as follows:
Node
/ \
(Leaf 1) Node
/ \
(Leaf 2)(Leaf 3)