haskell-lectures/VL1/content/VL1_ADT6.tex

13 lines
206 B
TeX
Raw Normal View History

Let's build our tree:
\begin{haskellcode}
tree :: Tree
tree = Node
(Leaf 'x')
1
(Node
(Leaf 'y')
2
(Leaf 'z')
)
\end{haskellcode}
See board...