tweak
authorjim <jim@web>
Sun, 8 Feb 2015 00:15:43 +0000 (19:15 -0500)
committerLinux User <ikiwiki@localhost.members.linode.com>
Sun, 8 Feb 2015 00:15:43 +0000 (19:15 -0500)
rosetta1.mdwn

index 32e4102..0a09c7c 100644 (file)
@@ -167,7 +167,7 @@ Here are some interesting functions we can define in Kapulet. See [[below|rosett
       curried_flip   match lambda g. lambda  y  x.  g  x  y;
     in ...
 
-The function `curry` takes as an argument a function `f` that expects its arguments *uncurried*, and returns instead a function `lambda x y. f (x, y)` a function that expects its arguments *curried* --- but then does with them whatever `f` does. Going in the other direction, the function `uncurry` takes a function `g` that expects its arguments *curried*, and returns instead a function that expects its arguments *uncurried* --- but then does with them whatever `g` does.
+The function `curry` takes as an argument a function `f` that expects its arguments *uncurried*, and returns instead `lambda x y. f (x, y)`, a function that expects its arguments *curried* --- but then does with them whatever `f` does. Going in the other direction, the function `uncurry` takes a function `g` that expects its arguments *curried*, and returns instead a function that expects its arguments *uncurried* --- but then does with them whatever `g` does.
 
 The function `uncurried_flip` takes as an argument again an uncurried function `f`, and returns another function that also expects its arguments uncurried, but that expects them in the other order. `curried_flip` transforms a curried function `g` in the analogous way. These are both different from the function `swap` we defined in the [[course notes|topics/week1_kapulet_advanced#functions]] as: