HarmTrace-2.2.0: Harmony Analysis and Retrieval of Music

Safe HaskellSafe-Inferred

HarmTrace.HAnTree.Tree

Documentation

data Tree a Source

Constructors

Node 

Fields

getLabel :: !a
 
getChild :: ![Tree a]
 
getPn :: !(Maybe Int)
 

Instances

Eq a => Eq (Tree a) 
Show a => Show (Tree a) 
Binary a => Binary (Tree a) 
NFData a => NFData (Tree a) 
Sim a => Sim (Tree a) 

getPns :: [Tree t] -> [Int]Source

isLf :: Eq t => Tree t -> BoolSource

sizeF :: [Tree t] -> IntSource

depth' :: Int -> Tree t -> [Int]Source

remove :: Eq t => t -> Tree t -> Tree tSource

removeBy :: (t -> Bool) -> Tree t -> Tree tSource

removeBy' :: (t -> Bool) -> Tree t -> [Tree t]Source

pot :: Tree t -> [Tree t]Source

potPret :: Tree t -> [Tree t]Source

pret' :: Tree t -> [Tree t]Source

pret :: Tree t -> [Tree t]Source

pot' :: Tree t -> [Tree t]Source

matchToTree :: Tree t -> [Int] -> [Tree t]Source