Created
March 15, 2019 18:51
-
-
Save neongreen/49b3b3a49318275c66a4853cde8966d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> putStrLn $ drawVerticalTree (Node g [Node g [], Node g [Node g [], Node g [], Node g []]]) | |
┌───────┐ | |
│ o o . │ | |
│ o x x │ | |
│ . . . │ | |
└───────┘ | |
| | |
--------------------- | |
/ \ | |
┌───────┐ ┌───────┐ | |
│ o o . │ │ o o . │ | |
│ o x x │ │ o x x │ | |
│ . . . │ │ . . . │ | |
└───────┘ └───────┘ | |
| | |
--------------------- | |
/ | \ | |
┌───────┐ ┌───────┐ ┌───────┐ | |
│ o o . │ │ o o . │ │ o o . │ | |
│ o x x │ │ o x x │ │ o x x │ | |
│ . . . │ │ . . . │ │ . . . │ | |
└───────┘ └───────┘ └───────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment