# Talk:Library for binary

### From HaskellWiki

Revision as of 15:53, 7 March 2007 by MathematicalOrchid (Talk | contribs)

What's the difference between this and Data.Bits? -- kowey 14:55, 7 March 2007 (UTC)

Data.Bits

data Tree t = Leaf t | Branch (Tree t) (Tree t) get_node :: Bits -> Tree t -> Tree t get_node [] t = t get_node (b:bs) (Branch t0 t1) = get_node bs $ if b == Zero then t0 else t1

Data.Bits

[Zero]

[Zero,Zero,Zero]

In summary, you could say that this library is for solving a slightly different problem. MathematicalOrchid 15:53, 7 March 2007 (UTC)