[Haskell-cafe] how to make this work recursive ?

Roelof Wobben r.wobben at home.nl
Sat Feb 28 08:40:31 UTC 2015


Hello,

I found out that for 1 item I can do this : node = Node leaf "msg 1" leaf
And for 2 items I can do this : node = Node leaf "msg1"  (Node leaf 
"msg2" leaf)

But now I wonder how I can make this work with recursion. It seems that 
I keep the first 2 items and change the 3th one from leaf to another node

Roelof




More information about the Haskell-Cafe mailing list