apart-0.1.0: Get all your structure and rip it apart.
Data.Apart.Structures.Tree.Binary.Splay
Synopsis
search :: Eq a => a -> Binary a -> Segment Binary a Source #
If needed element not in the root - it isn't found.
insert :: Ord a => a -> Binary a -> Segment Binary a Source #
Splay tree after each insert.