Some more progress. I really should read more of this book.

This commit is contained in:
2025-06-22 13:57:16 +03:00
committed by Emin Arslan
parent 9a365b2ed4
commit 7795821459
4 changed files with 57 additions and 6 deletions

View File

@ -14,9 +14,9 @@
(define-syntax-rule (meas form)
(let ([my-time (current-inexact-milliseconds)])
(let ([my-time (real-time)])
(let ([res form])
(- (current-inexact-milliseconds) my-time))))
(- (real-time) my-time))))
(define (recursive n)
@ -32,6 +32,9 @@
(define (iter-start n)
(iter 0 1 2 (- n 2)))
;; note, as the book says,
;; this generates an *iterative process*, despite being
;; fully recursive
(define (ex-1-11 n)
(let loop ((i n))
(if (< i 2)