From: Ramakrishnan Muthukrishnan Date: Sun, 3 Jun 2012 22:04:15 +0000 (+0530) Subject: solutions to 4.32 and 4.34 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv/frontends/(%5B%5E?a=commitdiff_plain;h=ef9bb63c4d3fa21f9964c3a5e612bfc519406744;p=sicp.git solutions to 4.32 and 4.34 --- diff --git a/src/sicp/ex4_32.rkt b/src/sicp/ex4_32.rkt new file mode 100644 index 0000000..f1c6457 --- /dev/null +++ b/src/sicp/ex4_32.rkt @@ -0,0 +1,8 @@ +#lang racket + +#| + +Here not only the cdr but the car is also lazy. One can represent lazy trees with +such a cons cell. + +|# \ No newline at end of file diff --git a/src/sicp/ex4_34.rkt b/src/sicp/ex4_34.rkt new file mode 100644 index 0000000..d8955f6 --- /dev/null +++ b/src/sicp/ex4_34.rkt @@ -0,0 +1,10 @@ +#lang racket + +#| + +Too 'lazy' to implement this problem. + +One can create a type for lazy cons cells and when it comes to printing, one can print +until some pre-defined number of cells exhausted and then print "... etc" or something like that. + +|# \ No newline at end of file