funcmp-1.5: Functional MetaPost

Portabilityportable
Stabilityprovisional
Maintainersimons@cryp.to

FMP.Tree

Description

 

Documentation

number :: Tree -> Tree' (Int, Int, Int)

data Tree' a

Constructors

Node' a NodeDescr [Tree' a] 

data Tree

Constructors

Node Picture NodeDescr [Edge] 

data AlignSons

Instances

Show AlignSons 

data Distance

Instances

Eq Distance 
Fractional Distance 
Num Distance 
Show Distance 

edge :: Tree -> Edge

edge' :: Path -> Tree -> Edge

enode :: IsPicture a => a -> [Edge] -> Edge

node :: IsPicture a => a -> [Edge] -> Tree

forEachNode :: (Tree -> Tree) -> Tree -> Tree

forEachLevelNode :: Int -> (Tree -> Tree) -> Tree -> Tree

forEachEdge :: (Path -> Path) -> Tree -> Tree

alignFunction :: (NodeDescr -> [Extent] -> Int -> [Numeric]) -> AlignSons

fit :: Numeric -> Extent -> Extent -> Position

fitLeft :: Numeric -> [Extent] -> [Position]

fitRight :: Numeric -> [Extent] -> [Position]

data NodeName

Constructors

Parent 
This 
Root 
Up Int 
Son Int 

Instances