
4 Dec
2007
4 Dec
'07
7:16 p.m.
On 2007-12-04, Paulo J. Matos
Hello all,
As you might have possibly read in some previous blog posts: http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=10 http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=11
we (the FPSIG group) defined: data BTree a = Leaf a | Branch (BTree a) a (BTree a)
Totally avoiding your question, but I'm curious as to why you deliberately exclude empty trees. Come to think of it, how can you represent a tree with two elements? Wouldn't
data BTree a = Empty | Branch (BTree a) a (BTree a)
be better? -- Aaron Denney -><-