generative-art-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Tree.Extended

Synopsis

Documentation

traverseTree Source #

Arguments

:: (Tree a -> mem -> mem)

Put a tree onto the to-visit list

-> (mem -> Maybe (Tree a, mem))

Get a tree from the to-visit list

-> mem

To-visit list; initially the first node of the tree

-> [a] 

depthFirst :: Tree a -> [a] Source #

breadthFirst :: Tree a -> [a] Source #

Breadth-first toList.

module Data.Tree