antisplice-0.13.2.2: An engine for text-based dungeons.

Safe HaskellNone

Game.Antisplice.Utils.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.