Skip to content

Instantly share code, notes, and snippets.

@semanticer
Created January 2, 2015 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semanticer/1ad914fa5e7e10afedd5 to your computer and use it in GitHub Desktop.
Save semanticer/1ad914fa5e7e10afedd5 to your computer and use it in GitHub Desktop.
-- print given tree
main = putStrLn (treeToSring (tree 4 2 3))
-- concatenate string from tree list structure
treeToSring treeList = intercalate "" [ unlines block | block <- treeList]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment