[Haskell-beginners] Re: Simplifying code

edgar klerks edgar.klerks at gmail.com
Wed Feb 10 07:47:58 EST 2010

He  Daniel,

 I use the Data.Map now, this makes it way more flexibler

data WordTree
>    = Branch [(Char, WordTree)]
>    | Tip
I only don't use this type of Tree. I am not sure how it works, but it looks
good, so I will experiment with it. Is it a so called rose tree? (Then I can
find some articles about it).

> Share the subtree,
>                        Just a -> let st = buildTree cs r
>                                  in Choice (a,st) (c,st)
> Stupid thing not to do, think I overlooked it :)

Thanks again.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100210/d96a73d6/attachment.html

More information about the Beginners mailing list