Is anyone familiar with this?
Write a procedure that takes as inputs a procedure that computes f and a positive integer n and returns the procedure that computes the nth repeated application of f. The procedure should be able to be used as follows:
((repeated square 2) 5) 625
I know that the following code I've created for the composition of functions will help make the solution simpler, but I'm not sure where to go from here:
(define (compose f g) (lambda (x) (f (g x))))