Module
Data.Tree
- Package
- purescript-tree-rose
- Repository
- jordanmartinez/purescript-tree-rose
#drawForest Source
drawForest :: Forest String -> String
Draw a 2D String
representation of a Forest String
,
#drawForest' Source
drawForest' :: Int -> Forest String -> String
Draw a 2D String
representation of a Forest String
,
starting the indent at the given level
#showForest Source
showForest :: forall a. Show a => Forest a -> String
Draw a 2D String
representation of a Forest
composed of Show
able
elements.
#scanTreeAccum Source
scanTreeAccum :: forall a b c. (a -> b -> Accum b c) -> b -> Tree a -> Tree c
Scan a Tree
, accumulating values of b
there are constant across Node
s
that have the same parent, and returning a Tree
of type c
.
#setNodeValue Source
setNodeValue :: forall a. a -> Tree a -> Tree a
Set the value of a node.
#modifyNodeValue Source
modifyNodeValue :: forall a. (a -> a) -> Tree a -> Tree a
Modify the value of a node.
- Modules
- Data.
Tree - Data.
Tree. Zipper