From ec7e61a11b6cbbfe9c6c90e6c077c430424317d0 Mon Sep 17 00:00:00 2001 From: barker Date: Mon, 13 Sep 2010 09:25:59 -0400 Subject: [PATCH] --- assignment1.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assignment1.mdwn b/assignment1.mdwn index 5be29cf8..6fd29ee2 100644 --- a/assignment1.mdwn +++ b/assignment1.mdwn @@ -26,7 +26,7 @@ In Racket, these can be defined like this: 8. Define a "neg" operator that negates "true" and "false". -Expeceted behavior: (((neg true) 10) 20) evaluates to 20, +Expected behavior: (((neg true) 10) 20) evaluates to 20, (((neg false) 10) 20) evaluates to 10. 9. Define an "and" operator. @@ -44,6 +44,7 @@ one of those values, call it a black-or-white-value, we should be able to write: the-black-or-white-value if-black if-white + (where if-black and if-white are anything), and get back one of if-black or if-white, depending on which of the black-or-white values we started with. Give a definition for each of "black" and "white". (Do it in both lambda calculus -- 2.11.0