What is the purpose of the
bindings in the procedures
? What would be wrong with the following implementation of
? Hint: Recall the definition of the infinite stream of ones in section 3.5.2:
(define ones (cons-stream 1 ones))
(define (add-assertion! assertion) (store-assertion-in-index assertion) (set! THE-ASSERTIONS (cons-stream assertion THE-ASSERTIONS)) 'ok)
There are no comments yet.
You must log in to post a comment.Login