Skip to content

Instantly share code, notes, and snippets.

@jb55
Created June 30, 2014 01:46
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 jb55/e94cc13f24dd319fa356 to your computer and use it in GitHub Desktop.
Save jb55/e94cc13f24dd319fa356 to your computer and use it in GitHub Desktop.
λ putStrLn $ drawVerticalTree $ Node "a" [Node "b" [Node "c" []], Node "d" []]
a
|
--
/ \
b d
|
c
λ putStrLn $ drawVerticalTree $ join $ duplicate $ Node "a" [Node "b" [Node "c" []], Node "d" []]
a
|
-----------
/ | | \
b d b d
| |
c --
/ \
c c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment