Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:2023:haskell:l08 [2023/04/28 17:43] george.vanuta better bolding |
pp:2023:haskell:l08 [2023/04/28 17:43] (current) george.vanuta bolding |
||
---|---|---|---|
Line 124: | Line 124: | ||
</code> | </code> | ||
- | **8.3.2.** In order to view an **infinite tree**, we need to convert it to a **finite binary tree**. Define the function ''sliceTree'', which takes a level ''k'', an **infinite tree** and returns the first ''k'' levels of our tree, in the form of a finite one. | + | **8.3.2.** In order to view an **infinite tree**, we need to convert it to a **finite binary tree**. Define the function ''sliceTree'', which takes a level ''k'', an **infinite tree** and returns the first ''k'' levels of our tree, in the form of a **finite** one. |
<code haskell> | <code haskell> |