Functional coverage tree: Difference between revisions

Content added Content deleted
Line 1,386: Line 1,386:


===Python: Composition of pure functions===
===Python: Composition of pure functions===
Parsing the task statement text directly to a tree of dictionaries, folding a '''weightedTreeAverage''' function over that tree, and mainly using pre-existing generic functions, including '''foldTree''' and '''fmapTree''':
Parsing the task statement text directly to a tree of dictionaries, folding a '''weightedTreeAverage''' function over that tree, and further decorating it with a top-down residue-share traversal.

Mainly uses pre-existing generic functions, including '''forestFromLineIndents''', '''foldTree''' and '''fmapTree''':
{{Works with|Python|3.7}}
{{Works with|Python|3.7}}
<lang python>'''Functional coverage tree'''
<lang python>'''Functional coverage tree'''