From 1e33c212d1e666a7401c413a7b87188a51fc220b Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 2 Jun 2014 11:45:24 -0400 Subject: [PATCH] Exercise 1.42 --- 1-3.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/1-3.org b/1-3.org index 426f221..c87a6a4 100644 --- a/1-3.org +++ b/1-3.org @@ -602,7 +602,18 @@ layout: org ((compose square inc) 6) 49 #+end_src - + + ---------------------------------------------------------------------- + + #+begin_src scheme :tangle yes + ;; ------------------------------------------------------------------- + ;; Exercise 1.42 + ;; ------------------------------------------------------------------- + + (define (compose f g) + (lambda (x) (f (g x)))) + + #+end_src ** Exercise 1.43 If f is a numerical function and n is a positive integer, then we can form the nth repeated application of f, which