Jump to content

Display an outline as a nested table: Difference between revisions

m
→‎Python: Functional: Slight simplification of wikiTableFromTree rendering function
(→‎{{header|Haskell}}: Updated to allow for writing several tables, where outline has several top-level roots)
m (→‎Python: Functional: Slight simplification of wikiTableFromTree rendering function)
Line 2,380:
def wikiTableFromTree(colorSwatch):
'''A wikitable rendered from a single tree'''
defreturn gocompose(tree):
return compose(wikiTableFromRows,
wikiTableFromRowslevels,
levelspaintedTree(colorSwatch),
paintedTree(colorSwatch)widthMeasuredTree,
widthMeasuredTree,fullDepthTree
)
fullDepthTree
)(tree)
 
return go
 
 
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.