Visualize a tree: Difference between revisions

m
→‎Simple decorated-outline tree: Remove unused 'type' key from dict.
m (→‎Simple decorated-outline tree: Use itertools.chain in place of list construction and concatenation.)
m (→‎Simple decorated-outline tree: Remove unused 'type' key from dict.)
Line 3,491:
value of some kind to a list of zero or
more child trees.'''
return lambda xs: {'type': 'Node', 'root': v, 'nest': xs}
 
 
Anonymous user