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

Safe HaskellNone

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.