[Haskell-cafe] bit of help with n-ary please...

Ketil Malde ketil at malde.org
Mon Nov 9 03:04:18 EST 2009


Ketil Malde <ketil at malde.org> writes:

>      data Tree a = Empty | Branch a [Tree a]

> What would the consequences be if you replaced your definition with
> this one?

And, for extra credit, can you identify similar issues with this
definition?  Can you improve on it?

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list