Visualize a tree: Difference between revisions
→Functional composition
Line 1,975:
===Functional composition===
{{Trans|JavaScript}} (Plain Text version)
<lang python>from
from operator import
Line 1,987:
def draw(node):
def shift(first, other, xs):
return list(
add,
zip(
[first] + list(
xs
)
|