Functional coverage tree: Difference between revisions
m
→{{header|Haskell}}
SqrtNegInf (talk | contribs) (Added Perl 6 example) |
|||
Line 345:
=={{header|Haskell}}==
Using a function from a text outline to an updated text outline.
The raw table (supplied in the task description) is read in from a text file, parsed to a tree structure, and updated by two traversals (one bottom-up and one top down) before being serialised back to a completed outline text, with an additional 'Share of Residue' column:
Line 537 ⟶ 536:
wine_cellar | 1 | 1.0000 | 0.0000
cinema | 1 | 0.7500 | 0.0167 </pre>
=={{header|J}}==
|