Skip to content

Commit 83f747a

Browse files
committed
Fix typo
1 parent 47ae2a5 commit 83f747a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/codata/data-codata.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
== Relating Data and Codata
33

44

5-
In this section we'll explore the relationship between data and codata, and in paritcular converting one to the other. We'll look at it in two ways: firstly a very surface-level relationship between the two, and then a deep connection via `fold`.
5+
In this section we'll explore the relationship between data and codata, and in particular converting one to the other. We'll look at it in two ways: firstly a very surface-level relationship between the two, and then a deep connection via `fold`.
66

77
Remember that data is a sum of products, where the products are constructors and we can view constructors as functions. So we can view data as a sum of functions. Meanwhile, codata is a product of functions. We can easily make a direct correspondence between the functions-as-constructors and the functions in codata. What about the difference between the sum and the product that remains.
88
Well, when we have a product of functions we only call one at any point in our code. So the logical or is in the choice of function to call.

0 commit comments

Comments
 (0)