Tree from nesting levels: Difference between revisions
m
→Python: Functional
(→Python: Functional: Added a round-trip (from tree back to sparse level list) using a generic catamorphism over trees) |
|||
Line 878:
# showTree :: Tree Maybe Int -> String
def showTree(tree):
'''A string representation
a Maybe Int tree.
'''
return drawTree(
|