jxxcarlson/elm-tree-builder/2.0.0

NOTE: the latest version is 7.0.0

Tree.Render

Functions for transforming a tree or a forest to a string.

toString : Int -> (a -> String) -> Tree a -> String

The first argument is the quantum of indentation. The second is a function for transforming a node of a tree to a string.

forestToString : Int -> (a -> String) -> List (Tree a) -> String

The first argument is the quantum of indentation. The second is a function for transforming a node of a forest to a string.