Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 1b690c8c authored by Sean Gillespie's avatar Sean Gillespie
Browse files

Add association examples

parent d90bacf5
Branches
Tags
No related merge requests found
......@@ -54,6 +54,11 @@ value of type B. Following are more examples
(1) is a curried function that takes an X and a Y and returns a Z. Finally, (2)
takes a function of type `Nat → Nat` and returns a Nat.
Function types associate to the right. The following types are equivalent
X → Y → Z
X → (Y → Z)
# References
1. [System F](https://en.wikipedia.org/wiki/System_F). Wikipedia: The Free Encyclopedia
2. Types and Programming Languages. Benjamin C. Pierce
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment