Visualize a tree: Difference between revisions
Content deleted Content added
Removed useless TNode. Kept only Node[T] as re ref object. |
m Added output. |
||
Line 2,923:
echo tree.indent.join("\n")</lang>
{{out}}
<pre>--1
|--2
| |--4
| | |--7
| | | |-- (null)
| | | `-- (null)
| | `-- (null)
| `--5
| |-- (null)
| `-- (null)
`--3
|--6
| |--8
| | |-- (null)
| | `-- (null)
| `--9
| |-- (null)
| `-- (null)
`-- (null)</pre>
=={{header|Perl}}==
|