chatty-utils-0.7.3.0: Some utilities every serious chatty-based application may need.

Safe HaskellSafe
LanguageHaskell2010

Data.Chatty.Focus

Description

Provides an unbalanced BST with a focus on the root.

Synopsis

Documentation

data Focus a Source

An unbalanced BST with a focus on the root.

Instances

Indexable i o v => AnyBST Focus i o v 
None (Focus a) 

focusSelect :: Indexable a o v => o -> Focus a -> Maybe (Focus a) Source

Rotate the tree such that the given element becomes the root node.