[Haskell-beginners] Re: Simplifying code
edgar.klerks at gmail.com
Wed Feb 10 07:47:58 EST 2010
I use the Data.Map now, this makes it way more flexibler
> = 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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners