Safe HaskellSafe

BTree

Documentation

data BTree a Source #

Constructors

Empty 
Node a (BTree a) (BTree a) 

Instances

Eq a => Eq (BTree a) # 

Methods

(==) :: BTree a -> BTree a -> Bool

(/=) :: BTree a -> BTree a -> Bool

Read a => Read (BTree a) # 

Methods

readsPrec :: Int -> ReadS (BTree a)

readList :: ReadS [BTree a]

readPrec :: ReadPrec (BTree a)

readListPrec :: ReadPrec [BTree a]

Show a => Show (BTree a) # 

Methods

showsPrec :: Int -> BTree a -> ShowS

show :: BTree a -> String

showList :: [BTree a] -> ShowS

size :: BTree a -> Integer Source #

height :: BTree a -> Integer Source #

fromList :: [a] -> BTree a Source #

make :: [a] -> BTree a Source #

searchTree :: Ord a => [a] -> BTree a Source #

flatten :: BTree a -> [a] Source #