X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2F_assignment2_answers.mdwn;h=3eaaa1566c4791f3116b7c2fcb5bb32e8b6d74a6;hp=bb3b724f5960886089dce7370db53dae486ed40f;hb=1da42f4ba4e1c626fcaa2351bc653eab90badb39;hpb=663dd241274261fa15316bc9621eed9b5c71791f diff --git a/exercises/_assignment2_answers.mdwn b/exercises/_assignment2_answers.mdwn index bb3b724f..3eaaa156 100644 --- a/exercises/_assignment2_answers.mdwn +++ b/exercises/_assignment2_answers.mdwn @@ -1,7 +1,9 @@ Syntax ------ -Insert all the implicit `( )`s and λs into the following abbreviated expressions. +Insert all the implicit `( )`s and λs into the following abbreviated expressions. Don't just insert them *freely*; rather, provide the official expression, without any notational shortcuts, that is syntactically identical to the form presented. + +*In response to your feedback and questions, we refined the explanation of the conventions governing the use of the `.` shorthand. Thanks!* 1. `x x (x x x) x` (((x x) ((x x) x)) x) @@ -53,11 +55,11 @@ In Racket, these functions can be defined like this: 15. Define a `neg` operator that negates `true` and `false`. - Expected behavior: + Expected behavior: (((neg true) 10) 20) - evaluates to `20`, and + evaluates to `20`, and (((neg false) 10) 20)