]> git.rkrishnan.org Git - sicp.git/commitdiff
solution to 4.25
authorRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Wed, 18 Jan 2012 15:58:10 +0000 (21:28 +0530)
committerRamakrishnan Muthukrishnan <vu3rdd@gmail.com>
Wed, 18 Jan 2012 15:58:10 +0000 (21:28 +0530)
src/sicp/ex4_25.rkt [new file with mode: 0644]

diff --git a/src/sicp/ex4_25.rkt b/src/sicp/ex4_25.rkt
new file mode 100644 (file)
index 0000000..20c4136
--- /dev/null
@@ -0,0 +1,10 @@
+#lang racket
+
+#|
+
+The call (factorial 5) will never call 'unless' and will be recursively call 'factorial' for ever.
+
+It will work in a normal order language because none of the arguments of 'unless' are evaluated until
+they are used inside.
+
+|#
\ No newline at end of file