FComp-1.0.2: Compose music

Safe HaskellSafe-Inferred
LanguageHaskell98

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) 

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

getLabels :: Tree t -> [t] Source

isLf :: Eq t => Tree t -> Bool Source

sizeF :: [Tree t] -> Int Source

depthF :: [Tree t] -> Int Source

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

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

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

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