Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data HuffTree
- = Leaf Char
- | HuffTree |*| HuffTree
- deriving (Eq, Show)
- plant :: [(Char,Int)] -> HuffTree
- plant [(x,y)] = (Leaf x)
- plant ((x,y):xs) = plant xs |*| (Leaf x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement