[Haskell-beginners] A tree code

bahadýr altan doaltan at yahoo.co.uk
Fri Feb 24 05:50:48 CET 2012

Hello. There is a code below and I couldn't understand it myself. Could you help me with that please?  I especially have no idea about "data Tree alpha = Empty | Node " part.

data Tree alpha = Empty | Node ( alpha ,Tree alpha , Tree alpha )
x = Node (1,Node (2,Empty ,Empty),Node(3,Empty ,Empty))
y = Node(3,Empty ,Empty)

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120224/4ffc33ba/attachment.htm>

More information about the Beginners mailing list