X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment1.mdwn;h=d14f792ff4615381b5fa2ad581538d1966b49647;hp=ef1c561ca349fdb54a3fb17fd1e838bbeaf20232;hb=c88cb71f06a27b98822b3580c5871c7429665674;hpb=043cdafb6314cb4e7afb5c474e96064ad6ffa7cf diff --git a/assignment1.mdwn b/assignment1.mdwn index ef1c561c..d14f792f 100644 --- a/assignment1.mdwn +++ b/assignment1.mdwn @@ -93,7 +93,7 @@ Now we can write: (p get-first) ; will evaluate to 10 (p get-second) ; will evaluate to 20 -If you're bothered by having the pair to the left and the function that operates on it come second, think about why it's being done this way: the pair is a package that takes a function for operating on its elements as an argument, and returns the result of operating on its elemens with that function. In other words, the pair is also a function. +If you're bothered by having the pair to the left and the function that operates on it come second, think about why it's being done this way: the pair is a package that takes a function for operating on its elements as an argument, and returns the result of operating on its elemens with that function. In other words, the pair is also a function. (Of course, in the untyped lambda calculus, absolutely *everything* is a function: functors, arguments, abstracts, redexes, values---everything.) If you like, you can disguise what's going on like this: @@ -145,4 +145,4 @@ You can help yourself to the following definition: (define add (lambda (x) (lambda (y) (+ x y)))) -* [Only attempt this if you're feeling frisky, it's super hard unless you have lots of experience programming] Write a function that reverses the order of the elements in a list. +* Write a function that reverses the order of the elements in a list. [Only attempt this problem if you're feeling frisky, it's super hard unless you have lots of experience programming.]