Anonymous user
Visualize a tree: Difference between revisions
m
→Simple decorated-outline tree: Use itertools.chain in place of list construction and concatenation.
SqrtNegInf (talk | contribs) m (→{{header|Sidef}}: Fix link: Perl 6 --> Raku) |
m (→Simple decorated-outline tree: Use itertools.chain in place of list construction and concatenation.) |
||
Line 3,420:
<lang python>'''Visualize a tree'''
from itertools import (chain, repeat, starmap)
from operator import (add)
Line 3,438:
add,
zip(
chain([first],
xs
)
|