fixed a small error
This commit is contained in:
parent
05ce91da2b
commit
2033e1a5e2
2 changed files with 1 additions and 1 deletions
|
@ -709,7 +709,7 @@ Haskell types is fractal:</p>
|
||||||
<section class="slide">
|
<section class="slide">
|
||||||
<h2 id="natural-transformation-examples-14">Natural Transformation Examples (1/4)</h2>
|
<h2 id="natural-transformation-examples-14">Natural Transformation Examples (1/4)</h2>
|
||||||
<pre><code class="haskell small">data List a = Nil | Cons a (List a)
|
<pre><code class="haskell small">data List a = Nil | Cons a (List a)
|
||||||
toList :: [a] -> Tree a
|
toList :: [a] -> List a
|
||||||
toList [] = Nil
|
toList [] = Nil
|
||||||
toList (x:xs) = Cons x (toList xs)</pre>
|
toList (x:xs) = Cons x (toList xs)</pre>
|
||||||
</code>
|
</code>
|
||||||
|
|
BIN
output.pdf
BIN
output.pdf
Binary file not shown.
Loading…
Reference in a new issue