record Tree : Type -> Type
A finite rose tree
.value : Tree a -> a
value : Tree a -> a
.forest : Tree a -> Forest a
forest : Tree a -> Forest a
Forest : Type -> Type
A finite forest of trees
singleton : a -> Tree a
replicate : Nat -> Nat -> a -> Tree a
unfold : Nat -> (s -> (a, List s)) -> s -> Tree a
Unfold a tree up to the given depth.
flatten : Tree a -> List a
layers : Tree a -> List (List a)
index : List Nat -> Tree a -> Maybe a
drawTree : Tree String -> String