]> git.rkrishnan.org Git - sicp.git/commitdiff
solutions to 4.32 and 4.34
authorRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Sun, 3 Jun 2012 22:04:15 +0000 (03:34 +0530)
committerRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Sun, 3 Jun 2012 22:04:15 +0000 (03:34 +0530)
src/sicp/ex4_32.rkt [new file with mode: 0644]
src/sicp/ex4_34.rkt [new file with mode: 0644]

diff --git a/src/sicp/ex4_32.rkt b/src/sicp/ex4_32.rkt
new file mode 100644 (file)
index 0000000..f1c6457
--- /dev/null
@@ -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 (file)
index 0000000..d8955f6
--- /dev/null
@@ -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