[archives] [homepage]

Problem 1.43
Friday, August 23, 2019; ago; Download .md

SICP Exercise 1.43

(define (repeat f n)
  (if (= n 0)
      (lambda (x) x)
      (compose f (repeat f (- n 1)))))