From ef9bb63c4d3fa21f9964c3a5e612bfc519406744 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Mon, 4 Jun 2012 03:34:15 +0530 Subject: [PATCH] solutions to 4.32 and 4.34 --- src/sicp/ex4_32.rkt | 8 ++++++++ src/sicp/ex4_34.rkt | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/sicp/ex4_32.rkt create mode 100644 src/sicp/ex4_34.rkt 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 -- 2.37.2