Merge branch 'working'
[lambda.git] / topics / week1_kapulet_advanced.mdwn
index 2137d11..06a2043 100644 (file)
@@ -173,6 +173,8 @@ We've already come across the `id` function, namely λ `x. x`.
 Other common functions are `fst`, which takes two arguments and returns the first of them; `snd`, which takes two arguments and returns the second of them; and `swap`, which takes two arguments and returns them both but with their positions swapped. A fourth function is `dup`, which takes one argument and returns it twice.
 These functions can be defined like this:
 
+<a id=functions></a>
+
     let
       fst (x, y) = x;
       snd (x, y) = y;