antisplice-0.13.2.2: An engine for text-based dungeons.
Game.Antisplice.Utils.Focus
Description
Provides an unbalanced BST with a focus on the root.
Synopsis
data Focus a Source
An unbalanced BST with a focus on the root.
Instances
focusSelect :: Indexable a o v => o -> Focus a -> Maybe (Focus a)Source
Rotate the tree such that the given element becomes the root node.