Skip to content

Commit 40ad652

Browse files
authored
Simple typo (#270)
1 parent 233c610 commit 40ad652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/codata/data-codata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Relating Data and Codata
22

3-
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`.
3+
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`.
44

55
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.
66
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)