Tree from nesting levels: Difference between revisions

Content added Content deleted
(→‎Python: Functional: Added a couple of additional representations.)
Line 1,298: Line 1,298:
: a return-trip regeneration of the sparse level list from the same tree.
: a return-trip regeneration of the sparse level list from the same tree.


Each node in the underlying recursive tree structure is a tuple of a value (None or an integer),
and list of child nodes:

<pre>Node (None|Int) :: ((None|Int), [Node])</pre>
<lang python>'''Tree from nesting levels'''
<lang python>'''Tree from nesting levels'''