Visualize a tree: Difference between revisions

no edit summary
(→‎{{header|Racket}}: Nicer output)
No edit summary
Line 447:
├─b2
└─b3</pre>
 
=={{header|PicoLisp}}==
 
'view' is a built-in function in PicoLisp.
 
<lang PicoLisp>(view '(1 (2 (3 (4) (5) (6 (7))) (8 (9)) (10)) (11 (12) (13))))</lang>
 
Output:
<pre>
+-- 1
|
+---+-- 2
| |
| +---+-- 3
| | |
| | +---+-- 4
| | |
| | +---+-- 5
| | |
| | +---+-- 6
| | |
| | +---+-- 7
| |
| +---+-- 8
| | |
| | +---+-- 9
| |
| +---+-- 10
|
+---+-- 11
|
+---+-- 12
|
+---+-- 13
</pre>
 
=={{header|Prolog}}==
Anonymous user