Functional coverage tree: Difference between revisions

Content added Content deleted
(→‎{{header|Haskell}}: Added a Haskell draft.)
Line 347: Line 347:




The raw table (supplied in the task description) is read in from a text file, parsed to 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:
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:
{{Trans|Python}}
{{Trans|Python}}
<lang haskell>{-# LANGUAGE OverloadedStrings #-}
<lang haskell>{-# LANGUAGE OverloadedStrings #-}