X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment8.mdwn;h=f616de132bd06c600c19e75c89c6aeaa5b3c8321;hp=76eff65b16b46e231c37cc2cd7f6f4a2d4d381e5;hb=f16ce49534fe5d651bcb0049eb23306c2f01aed3;hpb=c300cc82d80c40f41a279711fc9c00b06137df60 diff --git a/assignment8.mdwn b/assignment8.mdwn index 76eff65b..f616de13 100644 --- a/assignment8.mdwn +++ b/assignment8.mdwn @@ -73,17 +73,24 @@ is equivalent to: (if (test1 argument argument) + ; then result1 + ; else (if (test2 argument argument) + ; then result2 + ; else (if (test3 argument argument) + ; then result3 + ; else result4))) Some other Scheme details: * `#t` is true and `#f` is false * `(lambda () ...)` constructs a thunk + * there is no difference in meaning between `[...]` and `(...)`; we just sometimes use the square brackets for clarity * `'(1 . 2)` and `(cons 1 2)` are pairs (the same pair) * `(list)` and `'()` both evaluate to the empty list * `(null? lst)` tests whether `lst` is the empty list